add_scale {ggplot} | R Documentation |
Add (one) scale to the plot
add_scale(p = .PLOT, scale)
p |
plot object, if not specified will use current plot |
scale |
scale to add, see scales for possible options |
You shouldn't need to call this function yourself as all scale objects provide a convenient method to do so automatically. These are the functions that start with sc.
Hadley Wickham <h.wickham@gmail.com>
p <- ggplot(movies, aesthetics=list(x=length, y=rating)) add_scale(ggpoint(p), position_continuous('x', range=c(80,100)))