Description Usage Arguments Details See Also Examples
Plot Frechet-Weibull fit
1 2 3 |
fit |
|
addx |
optional numeric vector of x values to add to the x-axis range. |
ylim, xlim |
optional numeric vector describing the y-axis or x-axis limits, respectively. |
scale_y |
logical indicating whether to scale the densities to common maximum height of y=1. |
log |
character vector indicating the axis or axes
log-transform, with any presence of |
type |
character string indicating the type of plot,
where |
highlight_range |
optional numeric range to highlight, intended to represent the range of counts selected for downstream analysis. |
do_facet |
logical indicating whether to create a
|
... |
additional arguments are ignored. |
This function plots the two distributions, Frechet and Weibull, using the fit parameters provided.
Other SALSA visualization functions: rank_count_plot
1 2 3 4 5 6 7 8 9 10 | library(salsa);
data(oz2_numi_per_cell);
param_fr_wei <- params_fr_wei();
usecounts <- sort(oz2_numi_per_cell$count);
usecounts <- usecounts[usecounts >= 16];
fit1 <- fitdist_fr_wei(x=usecounts, param_fr_wei=param_fr_wei);
plot_fr_wei(fit1);
plot_fr_wei(fit1, ylim=c(0,0.005));
plot_fr_wei(fit1, scale_y=TRUE) + ggtitle("densities scaled to max height")
plot_fr_wei(fit1, scale_y=TRUE, highlight_range=c(100, 2200))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.