Patched Smoothing Functions

Similarly to the modifications to geom_density(…), modifications have been made to the smoothing so that something like the following can be achieved quite easily.

suppressMessages(library(ggtern))
set.seed(1)
plot <- ggtern(data = data.frame(x = runif(100), 
                                 y = runif(100), 
                                 z = runif(100)), 
               aes(x, y, z))
plot + geom_density2d() + 
       theme_tern_rgbw() + 
       geom_smooth(se = F, colour = "red", size = 2, n = 200)

plot of chunk unnamed-chunk-1

Facebooktwittergoogle_plusredditlinkedinmail
Comments
  1. Philip

Leave a Reply

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