XHistogram: Plot Histogram with superimposed best-fitting normal...

Description Usage Arguments Examples

View source: R/XHistogram.R

Description

Can Plot histogram of Counts or Histogram of Probabilities

Usage

1
2
3
4
5
6
7
8
XHistogram(
  distribution,
  probability = FALSE,
  x1 = mean - sd,
  x2 = mean + sd,
  name = "A",
  color = "green"
)

Arguments

distribution

Vector of values for the histogram

probability

Optional, Boolean. If TRUE, plot histogram of Probabilities ( default is False )

x1

Optional, A Special point 1 to study ( default is x1=mean-sd )

x2

Optional, A Special point 2 to study ( default is x2=mean+sd)

name

Optional, A Name for the Data ( default is the name of the distribution )

color

Optional, A Color for the histogram ( defualt is green )

Examples

1
2
XHistogram(iris$Sepal.Length)
XHistogram(iris$Sepal.Length,probability = T,x1=6,x2=7,name="Sepal Lenth",color="yellow")

EduardoJacob/xfunctions documentation built on March 12, 2021, 7:30 a.m.