Month: October 2015


qplot, easy, pass.

ggplot basics:

1.plot the data

2.overlay a summary

3.metadata and annotation


something you can add on:

facet.grid(. ~ your variable) ____conditional plots

geom_point_____scatter plot

geom_smooth(method=”lm”, linetype, size)______smooth line with confidence interval band

x, ylim(): choose the range of X-Axis and Y-Axis

theme: choose the background

labs: add the titles to it

cut(): quantile(xvariable, seq(0,1,length=10), na.rm=TRUE) ##cut in 9 sections

(new xvariable<- cut(xvariable,your name of the cut function))