Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbec9cd6

Browse files
committed
other columns
1 parenta89ff0d commitbec9cd6

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

‎inst/reports/southwest/dmu-summary/report.Rmd‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ co$.label <- factor(
9090
any(table(cp$peiid) > 1)
9191
9292
# merge subset component pedons into SPC
93-
site(p) <- cp[, c('peiid', 'coiid', 'representative')]
93+
site(p) <- cp[, c('peiid', 'coiid', 'rvindicator')]
9494
9595
# look-up associated component label
9696
site(p)$.comp_label <- co$.label[match(p$coiid, site(co)$coiid)]
@@ -100,7 +100,7 @@ site(p)$.comp_label <- co$.label[match(p$coiid, site(co)$coiid)]
100100
p$.pedon_label <- p$taxonname
101101
102102
# flag RV copedon
103-
idx <- which(p$representative == 1)
103+
idx <- which(p$rvindicator == 1)
104104
p$.pedon_label[idx] <- paste0(p$.pedon_label[idx], '|R')
105105
106106
# flag OSD copedon

‎inst/reports/southwest/pedon-summary/custom.R‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ summarize.component <- function(f.i) {
253253
gen.hz.classification.table<- table(h.i$genhz,h.i$hzname)
254254

255255
# variables to summarize
256-
vars<- c('clay','sand','phfield','gravel','paragravel','cobbles','paracobbles','stones','channers','flagstones','total_frags_pct_nopf','albedo')
256+
vars<- c('claytotest','sandtotest','phfield','gravel','paragravel','cobbles','paracobbles','stones','channers','flagstones','total_frags_pct_nopf','albedo')
257257
# better names, used in final tables / figures
258-
var.names<- c('HZ','clay','sand','pH','GR','PGR','CB','PCB','ST','CN','FL','Total RF','Albedo')
258+
var.names<- c('HZ','claytotest','sandtotest','pH','GR','PGR','CB','PCB','ST','CN','FL','Total RF','Albedo')
259259

260260

261261
# wide -> long, inclide musym for plotting

‎inst/reports/southwest/shiny-pedon-summary/report.Rmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ plotSoilRelationGraph(m, graph.mode = 'directed', edge.arrow.size=0.5, vertex.la
260260
###Texture
261261
```{r}
262262
kable(s$tt)
263-
#texture.triangle.low.rv.high(data.frame(sand=peds$sand,silt=peds$silt,clay=peds$clay), p=c(0.05, 0.5, 0.95))
263+
#texture.triangle.low.rv.high(data.frame(sand=peds$sandtotest,silt=peds$silttotest,clay=peds$claytotest), p=c(0.05, 0.5, 0.95))
264264
```
265265

266266
###Color

‎inst/reports/southwest/shiny-pedon-summary/shiny.Rmd‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ inputPanel(
118118
"thematic_field",
119119
label = "Select horizon data to plot: ",
120120
choices = c(
121-
"clay",
122-
"sand",
121+
"claytotest",
122+
"sandtotest",
123123
"phfield",
124124
"total_frags_pct",
125125
"moist_soil_color",
@@ -1077,9 +1077,9 @@ if(loaded)
10771077
if (length(peds)) {
10781078
x <- na.omit(data.frame(
10791079
genhz = peds$genhz,
1080-
SAND = peds$sand,
1081-
SILT = peds$silt,
1082-
CLAY = peds$clay
1080+
SAND = peds$sandtotest,
1081+
SILT = peds$silttotest,
1082+
CLAY = peds$claytotest
10831083
))
10841084
10851085
if (nrow(x)) {

‎inst/reports/southwest/shiny-pedon-summary/util.R‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,9 @@ summarize.component <- function(f.i) {
407407
gen.hz.classification.table<- table(h.i$genhz,h.i$hzname)
408408

409409
# variables to summarize
410-
vars<- c('clay','sand','phfield','gravel','paragravel','cobbles','paracobbles','stones','channers','total_frags_pct','albedo')
410+
vars<- c('claytotest','sandtotest','phfield','gravel','paragravel','cobbles','paracobbles','stones','channers','total_frags_pct','albedo')
411411
# better names, used in final tables / figures
412-
var.names<- c('HZ','clay','sand','pH','GR','PGR','CB','PCB','ST','CN','Total RF','Albedo')
412+
var.names<- c('HZ','claytotest','sandtotest','pH','GR','PGR','CB','PCB','ST','CN','Total RF','Albedo')
413413

414414

415415
# wide -> long, inclide musym for plotting

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp