add_preassigned_scales | R Documentation |
Take existing data frame and associate colors with values
add_preassigned_scales(plot, labels_and_colors, var = "None")
plot |
The existing ggplot, needed to add more than one scale |
labels_and_colors |
A csis360 lookup data.frame with factor information |
var |
The name of the column, default to none for generic colors |
labels_and_colors is a data.frame produced by the csis360 package, see prepare_labels_and_colors drawing from lookup table that preassign labels, order, and color to the expected values of a column.
A plot with added color and fill scales for the column passed
plot<-add_preassigned_scales(plot,labels_and_colors,"pricing.mechanism.sum")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.