whist_dfCol: whist_dfCol

Description Usage Arguments Examples

View source: R/MarkdownReportsDev.R

Description

Use this version of whist() if you iterate over columns or rows of a data frame. You can name the file by naming the variable. Cannot be used with dynamically called variables (e.g. call vectors within a loop).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
whist_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

colName

Which column to plot (by name).

col

Color of the plot.

...

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

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))
whist_dfCol (df, colName="a", col = "gold", w = 7)

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