plot_t_dist | R Documentation |
Shows the shape of different t-distributions with differing degrees of freedom. Can also include a plot of the normal as a reference.
plot_t_dist( df, xlim = c(-3, 3), n_x = 500, col = rep(1, length(df)), xlab = "", ylab = "Probability Density", main_fmt = "Degrees of Freedom = %d", hl_y = 0.05, hl_lty = 3, hl_col = 2, oma = c(0, 0, 0, 0), mar = c(3, 4, 2, 0.5), ylim = c(0, 0.4), norm = TRUE, col_norm = 2, lty_norm = 2, ... )
df |
either a single value or a vector of degrees of freedom to plot |
xlim |
limits of the x-values to plot |
n_x |
how many points to simulate. Larger number = smoother curve |
col |
colors for the t curves |
xlab |
x-axis label |
ylab |
y-axis label |
main_fmt |
main title formatter |
hl_y |
height of the horizontal line to draw |
hl_lty |
type of horizontal line |
hl_col |
color for horizontal line |
oma |
outer margin |
mar |
main figure margins |
ylim |
y-limits for plotting |
norm |
should the standard normal be plotted as a reference? |
col_norm |
color for normal line |
lty_norm |
line style for normal |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.