Skip to content

Commit c1cc556

Browse files
author
Jenna Krall
committed
Fixed order of sources
1 parent 557e589 commit c1cc556

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

apca_nyc.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ colnames(dat2) <- c("Date", "Type", "Source", "Bottom", "Top" )
276276
dat1$Date <- as.Date(dat1$Date, origin = "1970-01-01")
277277

278278

279-
lev1 <- c("Traffic", "Residual oil", "Soil", "Sec. Sulfate")
279+
lev1 <- c("Soil", "Sec. Sulfate", "Traffic", "Residual oil")
280280
dat1$Source <- factor(dat1$Source, levels = lev1)
281281
dat2$Source <- factor(dat2$Source, levels = lev1)
282282
dat1$Type <- factor(dat1$Type, levels = c("Likelihood", "1/2MDL", "Exclude", "Reported"))

pmf_nyc.r

+4-1
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,12 @@ colnames(dat2) <- c("Date", "Type", "Source", "Bottom", "Top" )
236236
dat1$Date <- as.Date(dat1$Date, origin = "1970-01-01")
237237

238238

239-
lev1 <- c("Traffic", "Residual oil", "Soil", "Sec. Sulfate")
239+
lev1 <- c("Soil", "Sec. Sulfate", "Traffic", "Residual oil")
240240
dat1$Source <- factor(dat1$Source, levels = lev1)
241241
dat2$Source <- factor(dat2$Source, levels = lev1)
242242
dat1$Type <- factor(dat1$Type, levels = c("Likelihood", "1/2MDL", "Exclude/downweight", "Reported"))
243243

244+
244245
pd <- position_dodge(.4)
245246
size1 <- 18
246247
sizeline <- 0.8
@@ -288,6 +289,8 @@ p1 <- list()
288289
# }
289290
# grid.arrange(p1[[1]], p1[[2]], p1[[3]], p1[[4]])
290291

292+
293+
setwd("/Users/jennakrall/Dropbox/MDL_sourceapp/MDL_paper_20feb13/")
291294
pdf("NYC_mdlsources_pmf.pdf", height = 10, width = 9)
292295
p
293296
graphics.off()

0 commit comments

Comments
 (0)