ggtern output
I am trying to plot the following data
> foo
Resp A B C
1 1.629 0.3333333 0.3333333 0.3333333
2 1.734 0.1666667 0.6666667 0.1666667
3 1.957 0.0000000 1.0000000 0.0000000
4 1.778 1.0000000 0.0000000 0.0000000
5 1.682 0.6666667 0.1666667 0.1666667
6 1.407 0.1666667 0.1666667 0.6666667
7 1.589 0.0000000 0.5000000 0.5000000
8 1.251 0.0000000 0.0000000 1.0000000
9 1.774 0.5000000 0.5000000 0.0000000
10 1.940 0.5000000 0.0000000 0.5000000
>
Using
ggtern() +
geom_interpolate_tern(
data = foo,
mapping = aes(y = A,x = B,z = C,value=Resp),method='auto',base = "identity",n=200)
The lack of a smooth interpolation is something I can't seem to get rid of twicking the function parameters. I actually have multiple response arrays for this simplex and they all present the non-smoothness in the output.
Am I missing something about interpolation using ggerg
and geom_interpolate_tern
?
This is due to the fact that R doesn't nativly anti-alias on Windows.
You can fix this by using a different graphics device to render.
Or as SVG