gm.col_ord: Ordered Bar Graphic Model

Description Usage Arguments Value Examples

View source: R/gmcolord.R

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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
)

Arguments

data

a dataframe

ncolx

number of x column in data frame

ncoly

number of y column in data frame

ntimes

number of observations to plot (count by tail)

title

title of plot

xlab

x axis label

ylab

y axis label

percent

If TRUE, y axis in percent (default=F)

div100

If data percent are not in decimal format set TRUE.

dec

If TRUE, bars plot in decrescent order.

fontsize

change size of all words in graphic (only numbers)

cserie

change color of serie

clines

color of lines in graphic

ctext

color of words in graphic

cbackground

color of graphic background

cbserie

color of serie border (default= same cbackground)

Value

Return a graphic.

Examples

1
2
3
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)

jvg0mes/metools documentation built on June 28, 2020, 2:38 a.m.