Description Usage Arguments Examples
View source: R/draw_scale_numeric.R
Manipulate value of text in given axis.
1 2 |
axis |
Name of axis - "x" or "y" |
min |
Minimal value of given axis. |
max |
Maximal value of given axis. |
step |
How frequently we show text in given axis. Default value is based on max and min arguments: (max - min)/10. |
labels |
Show value in different way. Default value: comma; other options: percent. |
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
ggplot(mtcars, aes(factor(cyl), wt))+
geom_bar(stat = "identity", fill = cat_colors[1])+
theme_peru()+
draw_scale_numeric("y",0,60)
ggplot(diamonds[1:100,], aes(depth, carat, color = factor(cut)))+
geom_point(size = 7)+
theme_peru("color")+
draw_scale_numeric("y",0,1,0.1,labels = percent)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.