wbarplot_dfCol: wbarplot_dfCol

Description Usage Arguments Examples

View source: R/MarkdownReportsDev.R

Description

wbarplot for a column of a data frame.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
wbarplot_dfCol(
  df,
  ...,
  colName,
  col = unless.specified("b.def.colors", "gold1"),
  savefile = unless.specified("b.save.wplots"),
  w = unless.specified("b.defSize", 7),
  h = w,
  PNG = unless.specified("b.usepng", F)
)

Arguments

df

Input data frame to be plotted

...

Pass any other parameter of the corresponding plotting function(most of them should work).

colName

Which column to plot (by name).

col

Color of the plot.

savefile

Save plot as pdf in OutDir, TRUE by default.

w

Width of the saved pdf image, in inches.

h

Height of the saved pdf image, in inches.

PNG

Set to true if you want to save the plot as PNG instead of the default PDF.

Examples

1
2
try.dev.off(); df = cbind(a = rnorm(1:10), b = rnorm(10))
wbarplot_dfCol (df, colName = "a",  col = "gold1", w = 7)

vertesy/MarkdownReportsDev documentation built on Nov. 15, 2021, 9:59 a.m.