-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plotSPC fudge factors #62
Comments
Note that the current scaling logic doesn't work well when n < 4, and output is not acceptable when n <=2. |
A reasonable work-around for n = 1 and tall-narrow output. Move sketch over 0.5 index units, make room for 2 profiles, adjust profile width accordingly. library(soilDB)
x <- fetchOSD(c('amador', 'pentz', 'auburn', 'hornitos'))
# trick plotSPC into a reasonable figure
explainPlotSPC(x[1, ], x.idx.offset=0.5, n=2, width=0.35) For production use you could get away with an even stranger hack: par(mar=c(0,0,1,2))
plot(x[1, ], x.idx.offset=0.5, n=2, width=0.4, cex.names=1, y.offset=-10, scaling.factor=1.15) I still think we need a better option for |
The extra
x
andy
space fudge factors should be dynamically adjusted based on, number of profiles and max depth. The current approach is rather crude and based on tinkering.This is reasonable, but we can do better with a proper scaling function.
The text was updated successfully, but these errors were encountered: