ggplot

qplot, easy, pass.

ggplot basics:

1.plot the data

2.overlay a summary

3.metadata and annotation

plots:

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))

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s