Description Usage Arguments Value
Given a ggplot base object create a finished plot
1 |
gp |
the base ggplot to which to add a colour scale and aesthetic (see plotTile.base) |
layers |
a character vector of the levels which to plot |
discrete |
force the plot to attempt a discrete fill axis |
colours |
specify the colours use; a list if discrete is TRUE, or, 2 or 3 colours for the gradient if discrete is FALSE |
labels |
if desired, specify the names of the labels for each class |
... |
other parameters to pass |
the ggplot object with additional aes and scale
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.