cplot() are functions for plotting lattice data.
They are an alternative to base R's
image() function using
dplot is used for discrete data and
cplot for continuous data, they only
differ in the fact that pixel values are treated as a factor in
therefore, a discrete scale is used.
1 2 3
Since returns a
ggplot object, other layers can be added to it
using the usual
ggplot2 syntax in order to modify any aspect of the plot.
The data frame used to create the object has columns named
value, which are mapped to
fill, respectively, used
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.