- Accessing Soil Survey Data via Web-Services
- Dynamic Export of Soil Survey Data to KML through Soil-Web
- Initial SoilWeb Concept on Paper
- Major updates to CA, AZ, NV online soil survey system
- Migrating to Ka-Map! Online Soil Survey for AZ, CA and NV
- Planned Improvements in SoilWeb
- Saving Chunks of SSURGO Data in SoilWeb for Google Earth
- Soil Properties Visualized on a 1km Grid
- SoilWeb for the iPhone
- SoilWeb Usage Statistics
- Streaming Soil Survey Data in Google Earth (updates)
- Three New Soils-Related KMZ Demos
- Updated SoilWeb for the iPhone + Alpha Android Version
- Updates to SoilWeb



Made in R?
Hi,
Do you create these kmz files in R? If yes, would a small R script example be possible?
Thanks and cheers,
Jan
RE: Made in R?
Hi Jan,
I used GRASS to produce the maps, the GRASS add-on r.out.kml to produce the kml structure, and finally R to produce the ternary legend. Here is an example, updated to produce a PNG with a transparent background:
library(plotrix)
# generate all possible combinations of sand,silt,clay
# up to limits defined by original data
g <- expand.grid(sand=1:98, silt=1:80, clay=1:65)
# keep only those combinations that actaully add up to 100%
g.sub <- subset(g, subset=sand+silt+clay == 100 )
# compose an example figure
soil.texture(g.sub, col.symbols=rgb(r=g.sub$clay, g=g.sub$silt, b=g.sub$sand, max=100), pch=15, show.names=FALSE, show.lines=FALSE)
# save a PNG version with transparent background + white text
png(file='legend-test.png', width=400, height=400, bg=NA)
soil.texture(g.sub, col.symbols=rgb(r=g.sub$clay, g=g.sub$silt, b=g.sub$sand, max=100), pch=15, show.names=FALSE, show.lines=FALSE, col.axis='white')
dev.off()