scmanual {ggplot} | R Documentation |
Create a manual scale
scmanual(plot = .PLOT, variable="x", name="", breaks=NULL, labels=as.character(breaks), grob=function(x) grob_point(x, unique=FALSE))
plot |
plot object to add scale to |
variable |
variable to scale |
name |
name of the scale (used in the legend) |
breaks |
numeric vector of break points |
labels |
character vector of break labels |
grob |
grob function to use when drawing legend |
This scale function allows you complete control over the scale.
Supply labels and breaks to produce a legend.
Hadley Wickham <h.wickham@gmail.com>
ggfluctuation
for a use