Skip to content

Commit

Permalink
remove left over debugging, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanbeaudette committed Jun 17, 2024
1 parent 73aa2aa commit 39cb496
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
12 changes: 9 additions & 3 deletions R/plotSPC.R
Original file line number Diff line number Diff line change
Expand Up @@ -773,12 +773,18 @@ plotSPC <- function(
if(id.style == 'auto') {
sum.ID.str.width <- sum(sapply(pLabels, strwidth, units = 'inches', cex = cex.id, font = 2))
ID.width.ratio <- sum.ID.str.width / .par_devWidth
print(ID.width.ratio)

if(ID.width.ratio > 0.7)
# debug
# print(ID.width.ratio)

if(ID.width.ratio > 0.7) {
id.style <- 'side'
else
}

else {
id.style <- 'top'
}

}


Expand Down
5 changes: 3 additions & 2 deletions misc/sandbox/clarksville.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ aggregateColorPlot(a.8, label.cex = 0.65, main = "Clarksville Moist Colors\nGene

# marginal quantiles and L1 median of {L,A,B}
x <- colorQuantiles(na.omit(pedons$moist_soil_color[which(pedons$genhz == 'Bt')]))
plotColorQuantiles(x, title = 'Clarksville - Bt')
plotColorQuantiles(x)


## RI as described in Barron and Torrent, 1986
Expand All @@ -40,7 +40,8 @@ pedons$ln_RI <- log(pedons$RI)

hist(pedons$ln_RI)

plot(sample(pedons, 25), color='ln_RI')
par(mar = c(0, 0, 0, 2))
plotSPC(sample(pedons, 15), color = 'moist_soil_color', max.depth = 150, width = 0.35, name.style = 'center-center')



Expand Down

0 comments on commit 39cb496

Please sign in to comment.