draw_scale_numeric: Manipulate value of text in given axis.

Description Usage Arguments Examples

Description

Manipulate value of text in given axis.

Usage

1
draw_scale_numeric(axis, min, max, step = (max - min)/10, labels = comma)

Arguments

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.

Examples

 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 = categorical_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)

Nicolabo/PERUanalytics documentation built on May 7, 2019, 6:18 p.m.