Description Usage Arguments Value Examples
Plot Generator for Random Distributions
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
)
|
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) |
a plot from randomly generated numbers
1 | random_plot("normal", n = 1000, mean = 10, sd = 1, bins = 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.