View source: R/ACutils_export.R
plot_density | R Documentation |
This function plots the density function of some know distributions. Current version, does not allow to overlap different plots if use_ggplot is active. Though, it is possible when using standard plots. In such a case, the legend can be added a posteriori.
plot_density( ..., dist, main = " ", x_label = " ", y_label = " ", xlim = NULL, ylim = NULL, col = "gray48", use_x11_device = TRUE, use_ggplot = FALSE, add = FALSE )
... |
the list of parameters needed by the distribution specified in dist. |
dist |
string with the name of the density to be plotted. Possibilities are,
|
main |
the title of the plot. |
x_label |
the name of the x-axis in the plot. |
y_label |
the name of the y-axis in the plot. |
xlim |
set the range of x-axis. Not used if add is TRUE. |
ylim |
set the range of y-axis. Not used if add is TRUE. |
col |
set color of density line. |
use_x11_device |
boolean, if x11() device has to be activated or not. |
add |
boolean, if current plot has to be added to previous plot or not. |
this function does not return anything
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.