USDA Textural Soil Classification
Included in the next version (1.0.3.1) of ggtern, will be a new data set, taken from the USDA Textural Soil Classification[1] which we can use to reproduce the original diagram published by the United Stated Department of Agriculture.
Firstly let us load the packages and data:
# Load the required libraries library(ggtern) library(plyr) library(grid) # Load the Data. (Available in ggtern 1.0.3.0 next version) data(USDA) # Put tile labels at the midpoint of each tile. USDA.LAB = ddply(USDA, 'Label', function(df) { apply(df[, 1:3], 2, mean) }) # Tweak USDA.LAB$Angle = 0 USDA.LAB$Angle[which(USDA.LAB$Label == 'Loamy Sand')] = -35
Reconstructing the USDA’s Original Plot
Now let us construct the plot from the prepared data
# Construct the plot. ggplot(data = USDA, aes(y=Clay, x=Sand, z=Silt)) + coord_tern(L="x",T="y",R="z") + geom_polygon(aes(fill = Label), alpha = 0.75, size = 0.5, color = 'black') + geom_text(data = USDA.LAB, aes(label = Label, angle = Angle), color = 'black', size = 3.5) + theme_rgbw() + theme_showsecondary() + theme_showarrows() + custom_percent("Percent") + theme(legend.justification = c(0, 1), legend.position = c(0, 1)) + labs(title = 'USDA Textural Classification Chart', fill = 'Textural Class', color = 'Textural Class')
Comparison to Existing Format
The above reproduction looks considerably better than the originally published format [1].
Adding Additional Points
A number of people have asked how to add additional points, try the following:
df <- data.frame(SAND=runif(10),SILT=runif(10),CLAY=runif(10)) last_plot() + geom_point(data=df,aes(y=CLAY,x=SAND,z=SILT))
References
[1] Unknown-Author, Soil Mechanics Level 1, Module 3, USDA Textural Classification Study Guide, United States Department of Agriculture, 1987.
[Bibtex]
[Bibtex]
@Book{usda,
Title = {Soil Mechanics Level 1, Module 3, USDA Textural Classification Study Guide},
Author = {Unknown-Author},
Publisher = {United States Department of Agriculture},
Year = {1987},
Owner = {Nick Hamilton},
Timestamp = {20140116}
}





Comments
I need this diagram in my studies
How can I change the group colors?
thank you,
you need to add a scale control, where you can specify the colours of the polygon fills, try scale_fill_manual(…) or scale_fill_brewer(…)
How can add point (experimental measurements) to identify its texture
Thank¡
Hi Rodrigo,
You can add another layer of points, ie, see geom_point(…), if you need help with that, let me know.
Cheers,
Yes it will still be helpfull for me ^^
I’have a data set with 3 colums SAND, SILT, CLAY.
How can i implement it in your wonderful map ?
I have modified the post to cover your question. In summary, this is how you do it.
df <- data.frame(SAND=runif(10),SILT=runif(10),CLAY=runif(10)) last_plot() + geom_point(data=df,aes(y=CLAY,x=SAND,z=SILT))
A big thanks for your kind help on this question !
(which may be seem casual)
Just in case some people want to plot site in function of a special “variable”
Here what i’ve done:
+guides(fill=FALSE) to the ggplot() in order to erase the current legend
then:
add a site column in the df dataset:
df$site=c(rep(“a”,2),rep(“b”,2),rep(“c”,2),rep(“d”,2),rep(“e”,2));
as.factor(df$site);
Finally:
last_plot() +geom_point(data=df,aes(y=CLAY,x=SAND,z=SILT,colour=site),shape=19,show_guide = TRUE)+scale_color_discrete(as.factor(df$site),name = “site”);
Again many thanks for your website Nicholas Hamilton !
Hey, plot looks great. I can’t seem to get the code working though… do you have any suggestions as to why I’m getting the error message,
Error in (function (el, elname) :
“axis.tern.padding” is not a valid theme element name.
Sorry that theme element was removed some time ago, have updated the code, try again.
Thank you for the speedy response! The new script works. The only problem I’m running into is the fact that my axes are a bit off. I cant seem to get them to match yours or the USDA’s. Im finding clay on the right, silt on the bottom, and sand on the left, though the textural classes are correctly placed… Basically I just need to rotate the image? Sorry for so many questions… Ken
In order to get same the same results with Nicholas, you have to adjust a little bit about the code on the step # Construct the plot. Please see as follows:
# Construct the plot.
ggplot(data = USDA, aes(y=Clay, x=Sand, z=Silt)) +
coord_tern(L=”x”,T=”y”,R=”z”) +
geom_polygon(aes(fill = Label),
alpha = 0.75, size = 0.5, color = ‘black’) +
geom_text(data = USDA.LAB,
aes(label = Label, angle = Angle),
color = ‘black’,
size = 3.5) +
theme_rgbw() +
theme_clockwise() +
theme_showsecondary() +
theme_showarrows() +
custom_percent(“Percent”) +
theme(legend.justification = c(0, 1),
legend.position = c(0, 1)) +
labs(title = ‘USDA Textural Classification Chart’,
fill = ‘Textural Class’,
color = ‘Textural Class’)
Ah! it worked! The vast corners of the internet have rained down upon me the knowledge of conveniently conveying soil textural classes through the wonders of R. Thank you so much (and to Nicholas Hamilton too for designing ggtern!).
Would you mind if I use this colorized textural classification chart in a master’s thesis?
Of course not! I would appreciate a citation though.
Yes of course! Thank you very much, Nicholas.
Hi, Nicholas, will it be possible to plot points with continuous colors (for example, from white to blue) in this USDA chart? Thanks a lot!
Yes of course. Same rules for ggplot apply. This chart has a mapping to ‘fill’ already, but colour remains exposed.
If the plot in the main code is assigned to the ‘base’ variable, try the following:
Thanks a lot. I used colour option, it did work.
Hello Nicholas,
What is an effective way to label in these ternary diagrams?
Thanks for writing this!
It has been so helpful
Thiis is a great ttip particularly to those new to the blogosphere.
Brief but very accurate info� Thanks for sharing
this one. A must read post!
I delight in, result in I found just what I used to be having a look
for. You have ended my 4 day long hunt! God Bless you man. Have a great day.
Bye
Great package!!!!
Question:
I have texture data measured on different sites and at different depths.
I would like to plot these findings on this USDA chart and would like to have different colours per site and different symbols per depth.
This I achieve by doing
base + geom_point(data=df,aes(Sand,Clay,Silt,shape=Depth,colour=Site),size=4)
Is it possible to go further and make sure that each dot is coloured according to ‘Site’ while having a black border/edge? I tried doing this:
base + geom_point(data=df,aes(Sand,Clay,Silt,shape=Depth,fill=Site),colour=”black”,size=5)+
scale_shape_manual(values=c(21,24,22))
But it ends up looking horrible as the colours of the entire chart change.
I realize ‘fill’ is already used to build the chart, but is there a workaround? I tried adding two sets of points, one with size=5 that is completely black and another on top with size =4 that has the right colours, but it just ends up looking weird.
An intriguing discussion is worth comment. I do think that you ought
to publish more about this topic, it might not be a taboo subject but typically folks don’t
talk about these issues. To the next! All the best!!
Not single-handedly as the best Asian gambling operator
in the 2009 and 2010 versions of eGaming review Magazine,
but the online gambling site Sbobet has moreover become the 11th most ranked company in the “50 faculty Company” list in 2011 which is the list of
the most influential companies in the eGaming industry.
This is proof that Sbobet is not an online gambling site.
For starters, Sbobet is the best online bookie to acquit yourself Asian Handicap because here you can choose
both the type of bet and the odds you want. Compared to competitors
such as Dafabet and 188Bet, Sbobet has the
most amazing in-play betting assistance taking into consideration liven up video streaming features for several tournaments and popular matches in the midst of
loyal customers.
suitable and thank you for visiting online casino agents for
Indonesia. Here we are here to manage to pay for entry for fans of sbobet casino who desire to
link the international agent site Promosbobet.
The products offered are very diverse and are
utterly the best choice. Derived from providers that have credibility
and have been proven to have the best predicate in serving their customers.
Providers when Sbobet, Maxbet and many more.
As the best online casino and soccer gambling site in Indonesia.
We manage to pay for maximum minister to gone customer hold that works online 24
full hours all day. appropriately members can deed whenever and wherever
without fearing to incline the possibility of difficulties or confusion.
similar to reality taking into account that, of course you have to be careful in choosing
a trusted gambling site to be a conduct yourself partner.
We are here to back up you incline the difficulties and clip a long way to find the best and most trusted gambling agent and the safest ball in Indonesia.
The Mabosbet site is the most secure ball trusted trusted agent that has been providing the best minister
to to its customers for years. PAGCOR has an qualified license from an authorized body that oversees gambling regulations
in the Asian region. This license guarantees the safest soccer gambling agent that
all games will be provided by Mabosbet guaranteed safe and have A-grade quality.
Probably the most Trusted Soccer Gambling Broker in Indonesia Serving
Listings of Gambling and On line casino Gambling
Userbola is the particular Most Trusted and Recognized SBOBET
Agent in Philippines. We serve bets that provide soccer gambling video games, online gambling games, casino gambling
agents, poker in addition to online lottery.
We will wholeheartedly always be ready to help anything you need and help you when there are difficulties in producing SBOBET Online Betting Accounts, MAXBET Agents or previously
known as IBCBET, Serba4d or KLIK4D lottery.
New 20% Member Bonus with the Best and a lot Trustworthy Soccer Gambling Agent
Userbola is usually the Best SBOBET Agency and
the Greatest Football Bandar in Dalam negri, always supplying
24-hour online service without stopping along the way of registering, adding, withdrawing and responding to
be able to your every complaint.
With regard to more information, please go directly to livechat in addition to chat directly
with our own friendly CS
Register regarding Sbobet right now!
Total Option for Trustworthy Sports Gambling and Online casino Agents
For you fans of wagering soccer matches both overseas
and domestic, reliable soccer gambling provides various matches from around the globe.
Not just that, basketball, golf and eSports tournaments are also right
here.
Especially for connoisseurs of Casino Providers, we possess probably the most complete range of online games which range from Baccarat, Poker,
Keno, Slot Machine and many more.
Userbola is one of the trusted sports betting sites that functions as a realtor
of the particular planet’s major soccer online bdtting shops for example SBOBET, Ibcbet in addition to Mahabet Sport.
You may definitely get a enjoyable experience while
betting due to interesting features offered by this web site.
Userbola has a professional support when you make
a deposit transaction until withdrawing cash.
One which just enter the sports gambling game on Userbola you must register first and become a user.
The strategy is very simple, all you have to be able to do is click about the list and
get into the registration form page and you will go directly to
our primary website.
Depoxito is the best online gambling site in Indonesia, in imitation of Depoxito you will tone the
sensation of playing further and militant online gambling.
We always innovate suitably that all our members can air a sensation in the manner of playing at a
genuine casino. Depoxito give you the best sentient casino feelings you can acquire behind every the lovely and sexy dealers, or grand vip saloon private room
for our VIP member where you can work one upon one in the manner of
our special Dealer every just for yourself.
Luxurious site and VIP class serve for you, a protester
and easy-to-use site, friendly and always kind Customer benefits to
help you. Depoxito is the right other for those of you who desire to take effect online gambling
without distressing that your winnings will not be paid, Depoxito
guarantees that every bet you area and win is legitimate and will be paid without
incurring any unwritten deductions.
Depoxito as a site that is a assistant of international big bookmakers enormously will not disappoint you as a faithful member of the Depoxito site and
will continue to intention additional updates and remodel our security system as a result that it can prevent our faithful members from the threat of personal data
leakage, scam or fraud.
Depoxito is then a trusted online gambling dealer that provides the most final gambling games in Indonesia,
such as sportsbook, slot games, live casino, lottery and
online poker that you can put it on similar to just 1 Account.
In accessory to the firm VIP utility game upon our site, we will pamper you our faithful members because you don’t dependence a lot of IDs to produce a result alternative gambling games.
As a gambling site accredited by PAGCOR (Philippines Amusement
and Gaming Corporation) Depoxito is afterward one of the
number one gambling sites in Indonesia and has a good reputation from all online gambling players in Indonesia.
As we have said, we have a customer help that is always
on standby to help all your needs even if playing on our site,
including for withdrawals and deposits that without help allow less than 3 minutes,
consequently we can be the best for zealot further next our
customer serve will standby 24 hour a daylight and 7 days a
week to encourage our believer and VIPs.
And the most special from our site compared to
additional sites is the supplementary that we have enough money to our
faithful members who continue to take steps upon our site will get the best promos and bonuses that we will pay for you, we always follow the push and trends
that are viral now fittingly the promos that we create are of course no less than any site.
For VIP members we always manage to pay for special
promos that are not written in view of that that
our members continue to conduct yourself on our site depoxito.
Thank you for the good writeup. It in fact was once a entertainment account
it. Look complicated to far brought agreeable from you!
However, how could we keep up a correspondence?
Listing of Alternative Linksbo Links
Today is significantly developing, so that it is simpler for those
to accessibility computerized networks. Till now there are
many online gambling games which can be played by any person online.
Therefore, wagering lovers no lengthier require to the
casino to learn gambling, this is pretty effortless
for them to be able to play anytime plus anywhere
without restrictions.
Depoxito is the best online gambling site in Indonesia,
as soon as Depoxito you will air the sensation of playing extra and
modern online gambling. We always innovate
appropriately that every our members can mood a sensation afterward playing at a real casino.
Depoxito provide you the best sentient casino feelings
you can acquire once every the beautiful and sexy dealers, or grand vip saloon private room for our VIP advocate where you can perform one upon one bearing in mind our
special Dealer every just for yourself.
Luxurious site and VIP class support for you, a advanced and easy-to-use site, kind and always
friendly Customer benefits to urge on you.
Depoxito is the right marginal for those of you who want to deed online gambling without distressing that your winnings will not
be paid, Depoxito guarantees that all bet you area and win is real and will be paid without incurring any unwritten deductions.
Depoxito as a site that is a co-conspirator of international huge bookmakers entirely will not disappoint
you as a faithful supporter of the Depoxito site and
will continue to aspire supplementary updates and remodel
our security system hence that it can prevent our faithful members from the threat of personal data
leakage, scam or fraud.
Depoxito is after that a trusted online gambling
dealer that provides the most fixed gambling games in Indonesia, such as
sportsbook, slot games, alive casino, lottery and online poker that you can put it on once just 1
Account.
In complement to the solution VIP encourage game upon our site, we will pamper
you our loyal members because you don’t obsession a
lot of IDs to con vary gambling games. As a
gambling site accredited by PAGCOR (Philippines Amusement and Gaming Corporation) Depoxito is also
one of the number one gambling sites in Indonesia and has a fine reputation from all online
gambling players in Indonesia.
As we have said, we have a customer advance that is always on standby to service all your needs even though playing
on our site, including for withdrawals and deposits that forlorn allow less than 3 minutes,
in view of that we can be the best for believer assist then our customer relief
will standby 24 hour a daylight and 7 days a week
to help our aficionada and VIPs.
And the most special from our site compared to additional sites is
the other that we pay for to our faithful members who continue to conduct yourself upon our site will
acquire the best promos and bonuses that we will come up
with the money for you, we always follow the shout out and
trends that are viral now hence the promos that we make are
of course no less than any site. For VIP members we always allow
special promos that are not written thus that
our members continue to be in upon our site depoxito
I know this website provides quality based posts and additional stuff,
is there any other web site which provides these things in quality?
Pandora188 was founded in 2020 is a further site in the manner of an international class that is balanced afterward sbobet and maxbet.
It has services and bonuses that will create
members to your liking playing upon the Pandora188
site. The facilities provided consist of Pandora188 flesh and blood chat, an alternative connect to login Pandora188.
In order to create it easier for members to create transactions
such as deposits and grants to the account. This is a very useful knack
for members.
As one of the gambling sites that have won the trust of
Indonesia, Pandora188’s task is to provide the best foster and playing experience.
From the introduction of the registrant, the first accumulation to doing at Pandora188.com.
That exaggeration bettor can freely play-act without unbearable
from threats such as hacking, scamming or the third one is phishing.
Because today there are in view of that many sites that carry out these goings-on to lead them.
To prevent this from taking place Pandora188 has
a solution, along with others.
Live talk Pandora188 lithe 24 Hours
One showing off Pandora188 prevents happenings that harm members
afterward scams, phishing and others facilitates stir chat
for members asking questions very nearly products, games and promotions that we provide.
We are ready to foster 24 hours each meeting.
Panduanjudi Login
Panduanjudi is a trusted and approved poker site from PKV games server.
We give 9 types of well ahead games that can be played using just one ID.
The games we offer combine poker, domino99, bandarq, aduq, sakong, bandar66 and moreover capsa
susun. In addition to having a large variety of games, http://www.Panduanjudi.com in addition to has several attractive promos that can be enjoyed
directly after bodily registered as a member. afterward unqualified weekly cashback
promos that are calculated from the total turnover, both winning and losing.
moreover Panduanjudi in point of fact appreciate if there are members who invite connections or relatives to
work on our site by giving a referral supplementary of 10% to 20% of the number of turnover downline invited to play.
To be the best poker site, Panduanjudi is always frustrating to enlarge our facilities to be adept to
offer the best experience in playing poker at our place.
One of the ways is the Gambling guide provides a means of
payment that reaches all elements of Indonesian society.
By in force like leading banks and accepting Simpati
and XL explanation deposits. As well as which players
can make deposits using E-wallets such as GoPay, OVO and Funds.
new than those mentioned above, of course there are still advantages in Panduanjudi to struggle to become the best
poker sites such as:
Along behind the times, concern developments have as
well as developed throughout the world. The number of further businesses that we don’t even know of exist because there
are too many of them. Similarly, the gambling business, of course there are then many names of gambling agents that have sprung up.
However, the emergence of these agents does not always present a good another for gamblers, both upscale and beginner gamblers.
taking into account thus many gambling agents popping up, utterly not all agents can be trusted because too many gambling situation worlds want to
endure more profits without thinking roughly the long-term impact.
Both members and for their own business.
Ensuring Bandar Legality
Therefore attributed agent2018 wants to manage to pay for
an simple mannerism to find a trusted gambling agent site.
The ambition is that you can have an idea, how to handle the situation. later you are in a confess already
trapped by fraud traps. Because we all know in that point of view it’s
impossible to get out soon. You are next complacent, correspondingly you are not aware that
you are yet below the distress of fraud from irresponsible agents.
To find out the attributed gambling agent is enormously easy, create determined later than you visit the gambling site, whether it’s
a gambling site or similar, it’s a good idea to ask the customer give
support to whether the site is approved or not by asking
for proof of ID number or associate that can prove the existence of the site attributed soccer
gambling is valid and realizable to operate, usually an credited
online gambling site. Always has an office in the
Philippines and is below the aegis of Cagayan or
Pagcor, and has real immunity and authority. Which is protected by the declare of the Philippines, because
the isolated country in Asia that is clever to offer licenses for online gambling issue sites, is
lonely in the Philippines. easy passable right? To locate a trusted online soccer betting site.
Link exchange is nothing else but it is simply placing the other person’s blog link on your page at suitable place and other person will also
do similar in favor of you.
Bandar Judi Nova88
Nova88 is among the best trustworthy online bookies inside Indonesia which offers
been operating considering that 2004. More as compared to thousand men and women register as official members every single day
at Nova88.com for one reason only, namely we remain committed
to paying members’ profits. Coupled with the upgraded
and more advanced platform betting system. Through the Maxbet server migrated in order to the
Nova88 server, customers will experience an improved gaming knowledge for maximum total gameplay.
whoah this blog is magnificent i love reading your articles.
Keep up the good work! You already know, a lot of persons are searching round for this information,
you can help them greatly.
Trustworthy Indonesian Online Slot List Site
Bandaruserbolavip is a site that gives a set of the best online slots in Indonesia plus slot bookies which have trusted transaction solutions.
Set of slots on the Bandaruserbolavip internet site provides benefits to be able
to members in very easily playing all online games with only 1 ID and without the need
to move balances. Bandaruserbolavip also provides typically the best
service in online slot lists by filling out there forms or getting in touch with our cs who else are ready to serve members 24/7.
Through the Bandaruserbolavip internet site you will find various sorts of quality plus well-known slot betting games.
The Bandaruserbolavip site has worked with with many regarding
the leading gambling game providers in Asia
and also the world
Best On the internet Slot Provider
Phoning Bandaruserbolavip as the best and
trustworthy online slot wagering site is of course not without reason, this site has worked with with various leading online betting game providers in the industry.
below are a few regarding our official providers.