cplot | R Documentation |
This provides a quick way to generate a plot with ggplot2 using theme_cody and specifying several labels, as well as the font size, directly in the function call.
cplot(..., title = "", x.label = "", y.label = "", fill.label = "", base.size = 14)
title |
Title to print on the plot (optional) |
x.label |
Label for x axis (optional) |
y.label |
Label for y axis (optional) |
fill.label |
Label for fill legend (optional) |
base.size |
Base font size (optional) |
cplot(iris, aes(x=Sepal.Length, y = Sepal.Width), title = "Iris Sepal Dimensions", x.label = "Length (cm)", y.label = "Width (cm)", base_size = 12) + geom_point()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.