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

6번째 줄: 6번째 줄:
g <- ggplot(mpg, aes(class))
g <- ggplot(mpg, aes(class))
g + geom_bar()
g + geom_bar()
</syntaxhighlight>
<syntaxhighlight lang='r' notebook>
g + geom_bar(aes(weight = displ))
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='r' notebook>
<syntaxhighlight lang='r' notebook>
ggplot(mpg) + geom_bar(aes(y = class))
ggplot(mpg) + geom_bar(aes(y = class))
</syntaxhighlight>
</syntaxhighlight>


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

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

1 개요

R ggplot2 막대그래프
library(ggplot2)
g <- ggplot(mpg, aes(class))
g + geom_bar()
g + geom_bar(aes(weight = displ))
ggplot(mpg) + geom_bar(aes(y = class))

2 같이 보기

3 참고

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