"R ggplot2 막대그래프 geom bar()"의 두 판 사이의 차이

(새 문서: ==개요== ;E <syntaxhighlight lang='r' notebook> library(ggplot2) df <- data.frame(class=c("A", "B", "C"), score=c(60, 40, 80)) p <- ggplot(data=df, aes(x=class, y=score)) p </syn...)
 
5번째 줄: 5번째 줄:
library(ggplot2)
library(ggplot2)
df <- data.frame(class=c("A", "B", "C"), score=c(60, 40, 80))
df <- data.frame(class=c("A", "B", "C"), score=c(60, 40, 80))
p <- ggplot(data=df, aes(x=class, y=score))
p <- ggplot(data=df, aes(x=class, y=score) + geom_bar(stat="identity"))
p
p
</syntaxhighlight>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2021년 3월 30일 (화) 23:37 판

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}