demo/points.R

data("Feldspar")

#Base Plot
base = ggtern(data=Feldspar,aes(Ab,An,Or))

#Plot with Points
base + geom_point()

#Plot with Points, custom shape and sizes
base + geom_point(shape=2,size=5)

#Plot with Poitns, and mappings
base + 
  geom_point(aes(fill=Feldspar,shape=Feldspar,size=P.Gpa),color='black') + 
  scale_shape_manual(values=c(21,22))
base + labs(x = "Left",y="Top",z="Right")

Try the ggtern package in your browser

Any scripts or data that you put into this service are public.

ggtern documentation built on June 22, 2024, 11:01 a.m.