fitur 0.5.25 Release

March 13, 2018
By

(This article was first published on R on Thomas Roh, and kindly contributed to R-bloggers)

  • 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 on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)