ncss-tech / soilReports

An R package that assists with the setup and operation of a collection of soil data summary, comparison, and evaluation reports. These reports are primarily used by USDA-NRCS soil scientists in both initial and update mapping.
15 stars 5 forks source link

scaled density causes small acreage summaries to dominate the density plot figure #81

Open dylanbeaudette opened 6 years ago

dylanbeaudette commented 6 years ago

How can / should map unit area be factored into the density plots? Perhaps with variable line width?

dylanbeaudette commented 6 years ago

This is close, but the low / high end are too thin/thick:

var.lwd <- scales::rescale(log(sampling.res$area.stats$`Total Area`), to=c(0.5, 2.5))
tps <- list(superpose.line=list(col=cols, lwd=var.lwd, lend=2))

image

The scaling should result in something that is bounded by line widths of 0.5--2.5, but shouldn't always be clamped to that range. Someone more clever than I must know how to do this.