Wednesday, 16 March 2011

Textural triangle plot in R

Hi,
these days I'm working with soil textural data and one of the key point of these data is the presentation of the results.
The best way is a old-school texture triangle!!!

Because I like to do all my stuff in R, instead of opening draw software such as corel draw or adobe illustrator, I started looking at packages for this kind of plot.

I think the best one is plotrix, because it let's you plot the USDA or UK textura triangle, so in the end the image is ready for publication.

I prepared a little script to show how to create a simple plot, adding the legend and save it as image file.
The script is downloadable from this link:
R script

I'm also preparing a little video for showing how to use the script but if you are familiar with R, you don't need it.

4 comments:

  1. ciao,
    the link to the script seems to be broken!

    marco

    ReplyDelete
  2. Thanks man,
    you need to copy and paste the link into your browser to be able to download the file.
    Fabio

    ReplyDelete
  3. I don't know why it does that, because in the previous post the link was ok.
    I will try again, for now the copy and paste method works fine.

    ReplyDelete
  4. Ok, after 5 minutes of fighting it's now working fine.

    ReplyDelete

Note: only a member of this blog may post a comment.