Skip to content

Instantly share code, notes, and snippets.

@pedroj
Created March 25, 2013 16:29
Show Gist options
  • Select an option

  • Save pedroj/5238442 to your computer and use it in GitHub Desktop.

Select an option

Save pedroj/5238442 to your computer and use it in GitHub Desktop.
basic ggplot scatter
ggplot() +
coord_cartesian() +
scale_x_continuous() +
scale_y_continuous() +
scale_color_hue() +
facet_wrap(~cut) +
layer(
data=diamonds,
mapping=aes(x=carat, y=price, color=color),
stat="identity",
stat_params=list(),
geom="point",
geom_params=list(),
position=position_jitter()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment