plotDens | R Documentation |
Plot a density and strip plot to illustrate the distribution of a variable
plotDens(df, vbl, xtran = NULL, title = NULL, print = FALSE)
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? |
A density plot
df <- data.frame(x=rlnorm(100))
plotDens(df, 'x')
plotDens(df, 'x', xtran = 'log10')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.