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

1번째 줄: 1번째 줄:
==개요==
==개요==
;
;R ggplot2 막대그래프


<syntaxhighlight lang='r' notebook>
<syntaxhighlight lang='r' notebook>
library(ggplot2)
library(ggplot2)
df <- data.frame(class=c("A", "B", "C"), score=c(60, 40, 80))
g <- ggplot(mpg, aes(class))
p <- ggplot(data=df, aes(x=class, y=score) + geom_bar(stat="identity"))
g + geom_bar()
p
</syntaxhighlight>
</syntaxhighlight>



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

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