usage
qplot(
x,
y,
…,
data,
facets = NULL,
margins = FALSE,
geom = “auto”,
xlim = c(NA, NA),
ylim = c(NA, NA),
log = “”,
main = NULL,
xlab = NULL,
ylab = NULL,
asp = NA,
stat = NULL,
position = NULL
)
library(ggplot2)
qplot(x=carat,y=price,data=diamonds,geom=c('point','smooth'),span=0.5)
qplot(color,price/carat,data=diamonds,geom='boxplot')