ra_plot_dist: Plot a distribution with descriptive statistics

View source: R/ra_plot_dist.R

ra_plot_distR Documentation

Plot a distribution with descriptive statistics

Description

A vector of numeric values is plotted as a histogram with descriptive statistics: min, max, standard deviation and mean

Usage

ra_plot_dist(x, col = "red4", main = "")

Arguments

x

Vector of the sampled values

col

color used for the fill

main

Main text used as a title for the plot

Value

Returns a ggplot histogram and ggtable arranged with ggarrange

Examples

# sample a distribution
x <- ra_sample(x = "Normal(100, 0.3)", 100)
ra_plot_dist(x)


jpablo91/QuantRRA documentation built on July 3, 2024, 10:46 p.m.