fitur 0.5.25 Release
[This article was first published on R on Thomas Roh, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Fixed appearance of plots
Added plot_density function for comparison pdfs of fitted functions
Updated argument naming conventions
fitur on CRAN
Density Diagnostic Plot
library(fitur)
library(ggplot2)
library(trstyles)
set.seed(37)
x <- rgamma(10000, 5)
dists <- c('gamma', 'lnorm', 'weibull')
fits <- lapply(dists, fit_univariate, x = x)
theme_set(theme_tr())
plot_density(x, fits, nbins = 20)

QQ-Plot
The output is a ggplot object so you can add colors, styling, etc.
plot_pp(x, fits) + scale_color_tr()

PP-Plot
You can also zoom in on different areas.
plot_qq(x, fits) + scale_color_tr() + coord_cartesian(xlim = c(5,10))

To leave a comment for the author, please follow the link and comment on their blog: R on Thomas Roh.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.