powered by
gm.col_wl 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_wl( data, ncolx, ncoly, ntimes, title, legtitle, xlab = NULL, ylab = NULL, div100 = FALSE, percent = FALSE, fontsize = 0, colors = grDevices::rainbow(n = ntimes, v = 0.7), clines = "white", ctext = "white", cbackground = "#141414", cbserie = cbackground, legwpos = 0, legheight = 0.5 )
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
title of legendbox
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)
colors of bars
color of lines in graphic
color of words in graphic
color of graphic background
color of serie border (default= same cbackground)
legend words position (numeric)
height of legend box
Return a graphic.
# NOT RUN { v=data.frame("x"=seq(from=1,to=4,by=1),"y"=c(5,3,7,2)) gm.col_wl(v,1,2,title="Simple example",ntimes=3,legwpos=-2.5) # }
Run the code above in your browser using DataLab