Last chance! 50% off unlimited learning
Sale ends in
gm.col_ord make a ordered bar plot. Graphic models function family do graphic creation easy, is recommended for new programers, they have less and easyful parameters then p.col_ord but the graphic customize is more limited.
gm.col_ord(
data,
ncolx,
ncoly,
ntimes,
title,
xlab = NULL,
ylab = NULL,
percent = FALSE,
div100 = FALSE,
dec = FALSE,
fontsize = 0,
cserie = "#17B221",
clines = "white",
ctext = "white",
cbackground = "#141414",
cbserie = cbackground
)
a dataframe
number of x column in data frame
number of y column in data frame
number of observations to plot (count by tail)
title of plot
x axis label
y axis label
If TRUE, y axis in percent (default=F)
If data percent are not in decimal format set TRUE.
If TRUE, bars plot in decrescent order.
change size of all words in graphic (only numbers)
change color of serie
color of lines in graphic
color of words in graphic
color of graphic background
color of serie border (default= same cbackground)
Return a graphic.
# NOT RUN {
v=data.frame("x"=seq(from=1,to=4,by=1),"y"=c(5,3,7,2))
gm.col_ord(v,1,2,title="Simple example",ntimes=3)
# }
Run the code above in your browser using DataLab