powered by
gm.col make a 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( data, ncolx, ncoly, ntimes, title, xlab = NULL, ylab = NULL, div100 = FALSE, percent = 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 data percent are not in decimal format set TRUE.
If TRUE, y axis in percent (default=F)
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(v,1,2,title="Simple example",ntimes=3) # }
Run the code above in your browser using DataLab