plot_hist | R Documentation |
Creates a histogram of user-defined values (e.g., effects, correlations, or covariances).
plot_hist(df, value = NULL, bins = 30, density = FALSE)
df |
A data frame or vector with the values to be plotted. |
value |
The name of the values to be plotted. Ignored when 'df' is a vector. |
bins |
Argument passed to |
density |
When |
A histogram with x- and y-axes displaying the values and their frequency, respectively.
When density = TRUE
, a density curve is superimposed onto the histogram.
# Histogram of the simulated plot errors in the example data frame 'error_df_bivar'
# for Trait 1 in Environment 1.
error_df <- error_df_bivar[error_df_bivar$env == 1, ]
plot_hist(
df = error_df,
value = "e.Trait1",
density = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.