plotDens: Plot Density of a Variable

plotDensR Documentation

Plot Density of a Variable

Description

Plot a density and strip plot to illustrate the distribution of a variable

Usage

plotDens(df, vbl, xtran = NULL, title = NULL, print = FALSE)

Arguments

df

The data frame containing the variable

vbl

The variable to plot. A character string.

xtran

ggplot data transformation

title

Title for the plot

print

Should the graph be saved to a file?

Value

A density plot

Examples

df <- data.frame(x=rlnorm(100))
plotDens(df, 'x')
plotDens(df, 'x', xtran = 'log10')

PDXChris/pmtools documentation built on March 26, 2024, 8:13 a.m.