random_plot: Plot Generator for Random Distributions

Description Usage Arguments Value Examples

View source: R/random_plot.R

Description

Plot Generator for Random Distributions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
random_plot(
  x,
  n = 1,
  seed = FALSE,
  seed_n = 1,
  mean = 10,
  sd = 2,
  df = 2,
  df1 = 1,
  df2 = 10,
  size = 100,
  prob = 0.5,
  bins = 30
)

Arguments

x

Name of distribution type

n

Number of observations

seed

Logical operator, TRUE if setting seed (default to FALSE)

seed_n

number for set seed (default to 1)

mean

For normal distribution, mean value (default to 10)

sd

For normal distribution, standard deviation value (default to 2)

df

For t distribution, degrees of freedom (default to 2)

df1

For F distribution, numerator degrees of freedom (default to 1)

df2

For F distribution, denominator degrees of freedom (default to 10)

size

For binomial distribution, number of trials (default to 100)

prob

For binomial distribution, probability of success of each trial (default to 0.5)

bins

binwidth of graph (default to 30)

Value

a plot from randomly generated numbers

Examples

1
random_plot("normal", n = 1000, mean = 10, sd = 1, bins = 20)

chacepaulson/cp.package documentation built on Feb. 26, 2020, 12:48 a.m.