Learn R Programming

ggtern (version 3.5.0)

data_Feldspar: Elkin and Groves Feldspar Data

Description

Data relating to Elkins and Groves Feldspar Data, the following datasets include the experimental data and sample raster data from one of the images in the referenced paper. Feldspar - Experimental Data FeldsparRaster - Raster Data for Fig. 6.

Usage

#Experimental Data
data(Feldspar)

#Raster data data(FeldsparRaster)

Arguments

Format

Feldsdpar - One (1) row per Feldspar composition, FeldsdparRaster - Raster Matrix

Author

Nicholas Hamilton

References

Elkins, L. T. & Grove, T. L. Ternary Feldspar Experiments and Thermodynamic Models American Mineralogist, Mineral Soc America, 1990, 75, 544-559

See Also

Examples

Run this code
#Summarize the Feldspar Data
data(Feldspar)
summary(Feldspar)

#Plot Felspar Data
ggtern(data=Feldspar,aes(x=An,y=Ab,z=Or)) + 
    geom_point()

# Plot Feldspar data and Underlying Raster Image
data(FeldsparRaster)
ggtern(Feldspar,aes(Ab,An,Or)) + 
    theme_rgbw() + 
    annotation_raster_tern(FeldsparRaster,xmin=0,xmax=1,ymin=0,ymax=1) +
    geom_point(size=5,aes(shape=Feldspar,fill=Feldspar),color='black') +
    scale_shape_manual(values=c(21,24)) +
    labs(title = "Demonstration of Raster Annotation")
    

Run the code above in your browser using DataLab