general.hist_log: Function to create histograms to check for the necessity of a...

Description Usage Arguments Value Author(s) Examples

Description

The function creates two histograms, one of the original data and one of the log-tramsformed data. If desired, a second time point can be added, so that a plot with four histograms is created.

Usage

1
2
general.hist_log(x, by = NULL, file.name, nbars = 15, title = "",
  xlab = "", col.orig = "lightblue", col.log = "lightyellow")

Arguments

x

Numeric vector (Required)

by

Character or factor vector of the same length than 'x' to the time, if two time points should be analyzed. should contain only two levels (Default: Null)

file.name

begining of the name for the PNG output files (without '.png' ending) (Required)

nbars

number of bars for the histograms (Default: 15)

title

Title of the plot (Default: ”)

xlab

Label for the x-axis (Default: ”)

col.orig

Color of the histogram bars of the original values (Default: 'lightblue')

col.log

Color of the histogram bars of the log-transformed values (Default: 'lightyellow')

Value

A .png file with two or four histograms and a numeric vector with the size of the .png

Author(s)

Sebastian Voss, Adam Skubala

Examples

1
2
3
4
5
6
7
8
## Not run: 
x <- exp(rnorm(1000))
by <- factor(rep(c('baseline','day 30'), each=500), 
             level=c('baseline','day 30'))
general.hist_log(x=x, by=by, file.name='test_hist',
         title='Test Historgram', xlab='Measurement')

## End(Not run)

jhooge/BioViz documentation built on May 19, 2019, 9:28 a.m.