plot_frequency {emcAdr}R Documentation

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"
)

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

Value

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

Examples


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)


[Package emcAdr version 1.2 Index]