공부/R Programming
R 기초; ggplot2 그래픽2 - geom 함수 옵션
혼밥맨
2021. 1. 24. 17:32
반응형
R 기초; ggplot2 그래픽2 - geom 함수 옵션
library(ggplot2)
head(mtcars)
ggplot(data=mtcars, aes(x=wt, y=mpg)) +
geom_point() +
geom_smooth() +
labs(title="Fuel consumption vs weight",
x="Weight (1000 lbs)",
y="Fuel consumption (miles per gallon)")
?geom_point
?par
?colors()
?geom_smooth
?geom_text(
library(car)
str(Salaries)
ggplot(Salaries, aes(x=rank, y=salary)) +
geom_boxplot(fill="salmon", color="dimgray", notch=TRUE,
geom_point())
?geom_boxplot
?geom_point
?geom_rug
library(lattice)
head(singer)
ggplot(singer, aes(x=voice.part, y=height)) + geom_violin(fill="honeydew2") +
geom_boxplot(fill="lightgreen", width=0.2)
반응형