plothist: Plot a user-customized hist

Description Usage Arguments Value Examples

View source: R/beginr.R

Description

Plot a user-customized hist

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
plothist(
  data = rnorm(1000),
  mybreaks = "Sturges",
  myxlim = NULL,
  myylim = NULL,
  eightlines = TRUE,
  eightdigit = 0,
  eightcex = 0.8,
  eightcolors = c("red", "darkgreen", "blue", "black", "purple", "gold")[c(1, 2, 3, 2,
    1, 6, 6, 5, 4, 5)],
  mylegend = "",
  myxlab = "",
  return_df = FALSE,
  show_n = TRUE,
  show_skewness = TRUE,
  show_density = FALSE,
  show_normline = FALSE,
  x
)

Arguments

data

a numeric vector

mybreaks

character

myxlim

numeric

myylim

numeric

eightlines

logical

eightdigit

numeric

eightcex

numeric

eightcolors

colors

mylegend

character

myxlab

character

return_df

logic

show_n

logical

show_skewness

logical

show_density

logcial

show_normline

logical

x

a vector for plotting the curve

Value

a hist plot

Examples

1
plothist(rnorm(10000))

pzhaonet/beginr documentation built on March 27, 2021, 1:20 p.m.