New Geometry – Confidence Regions

December 17, 2013
By

(This article was first published on ggtern: ternary diagrams in R, and kindly contributed to R-bloggers)

geom_confidence(…)

One of the first suggestions that was presented to me, was by Sean Mulcahy, whom suggested that it would be a good idea to consider confidence regions, as presented HERE. I am plesed to say that a new geometry (geom_confidence) has been created, and, is available since version 1.0.1.1, continue reading for a couple of examples.

Basic Case

Here is an ‘out of the box’ example, using Sean’s Feldspar data, for the default 50%, 90% and 95% confidence intervals:

plot of chunk unnamed-chunk-2

Code for the above:

data(Feldspar)
ggtern(data = Feldspar, aes(An, Ab, Or)) +
    geom_confidence() + geom_point() +
    labs(title = 'Feldspar - Elkins and Grove 1990 + Confidence Levels')

The post New Geometry – Confidence Regions appeared first on ggtern: ternary diagrams in R.

To leave a comment for the author, please follow the link and comment on their blog: ggtern: ternary diagrams in R.

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.

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)