New Geometry – Confidence Regions

Combined with Existing Geometries

In conjunction with the existing geom_density2d(...) proto, below is another way to display the same data, although the information regarding Temperature and Pressure is not represented.

plot of chunk unnamed-chunk-3

Code for the above:

ggtern(data=Feldspar,aes(An,Ab,Or)) +
  geom_confidence(aes(group=Feldspar,
                      fill=..level..,
                      alpha=1-..level..),
                      n=2000,
                  breaks=c(0.01,0.02,0.03,0.04,
                           seq(0.05,0.95,by=0.1),
                           0.99,0.995,0.9995),
                  color=NA,linetype=1) +
  geom_density2d(aes(color=..level..)) +
  geom_point(fill="white",aes(shape=Feldspar),size=5) +
  theme_tern_bw() +
  theme_tern_nogrid() +
  theme(ternary.options=element_ternary(padding=0.2),
                        legend.position=c(0,1),
                        legend.justification=c(0,1),
                        legend.box.just="left") +
  labs(color="Density",fill="Confidence",
   title="Feldspar - Elkins and Grove 1990 + Confidence Levels + Density") +
  scale_color_gradient(low="gray",high="magenta") +
  scale_fill_gradient2(low="red",mid="orange",high="green",
                       midpoint=0.8) +
  scale_shape_manual(values=c(21,24)) +
  guides(shape= guide_legend(order   =1,
                             override.aes=list(size=5)),
         size = guide_legend(order   =2),
         fill = guide_colourbar(order=3),
         color= guide_colourbar(order=4),
         alpha= "none")
Facebooktwitterredditlinkedinmail
Comments
  1. bandar-sbobet
  2. link alternatif mabosbet
  3. mabosbet
  4. agenmaxbet.net
  5. l69
  6. space513.com

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.