You will need to define a method for this method if you want to extend
ggplot2 to handle new types of data. If you simply want to pass the vector
through as an additional aesthetic, return
A character vector of scale types. These will be tried in turn
to find a default scale. For example, if
c("foo", "bar") and the vector is used with the colour aesthetic,
ggplot2 will first look for
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.