descriptive_plot {popstudy}R Documentation

descriptive_plot

Description

Plot density with descriptive statistics for numerical values.

Usage

descriptive_plot(data, ..., labels = NULL, ylab = "Density")

Arguments

data

data.frame.

...

additional arguments to be passed to dplyr::select().

labels

A vector with x-axis labels.

ylab

y-axis label.

Value

descriptive_plot function returns a plot with density and descriptive statistics.

Author(s)

Cesar Gamboa-Sanabria

Examples


df <- data.frame(var1=rpois(50, 6), var2=rgamma(50, shape=5,rate=.4), var3=rnorm(50, 10))
descriptive_plot(df, var1, var3)



[Package popstudy version 1.0.1 Index]