Learn R Programming

emcAdr (version 1.3)

plot_frequency: Plot the histogram of the approximation of the RR distribution

Description

Plot the histogram of the approximation of the RR distribution

Usage

plot_frequency(
  estimated,
  sqrt = FALSE,
  binwidth = 0.1,
  hist_color = "#69b3a2",
  density_color = "#FF5733",
  xlab = "Score"
)

Value

no returned value, should plot the histogram of the estimated distribution (estimated).

Arguments

estimated

The ScoreDistribution element in the list returned by the DistributionApproximation function

sqrt

A Boolean to specify whether we normalize the estimated or not, it is recommended on large random walk.

binwidth

The width of the histogram bins

hist_color

The fill color for the histogram bars

density_color

The color for the density curve

xlab

Label of X axis

Examples

Run this code
# \donttest{
data("ATC_Tree_UpperBound_2024")
data("FAERS_myopathy")

estimation = DistributionApproximation(epochs = 10, ATCtree = ATC_Tree_UpperBound_2024,
            observations = FAERS_myopathy)

plot_frequency(estimated = estimation$ScoreDistribution)
# }

Run the code above in your browser using DataLab