Skip to content

Commit

Permalink
Merge branch 'master' of github.com:waldronlab/nychanesmicrobiome
Browse files Browse the repository at this point in the history
# Conflicts:
#	vignettes/smoking.Rmd
  • Loading branch information
lwaldron committed Feb 12, 2019
2 parents 0fa9d1e + db8b02a commit a18ac6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vignettes/smoking.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ alphadiv.melted <-
ggplot(alphadiv.melted, aes(smokingstatus,value)) +
geom_boxplot(aes(fill=smokingstatus))+
facet_grid(variable ~., scales = "free", switch = 'y') +
scale_x_discrete(labels = c("Cigarette\nsmokers","Never\nsmokers","Former\nsmokers","Alternative\nsmokers","Secondhand\nsmoke"))+
scale_x_discrete(labels = c("Never\nsmokers","Cigarette\nsmokers","Former\nsmokers","Alternative\nsmokers","Secondhand\nsmoke"))+
scale_y_continuous(position = 'right') +
scale_fill_manual(values = scale_palette) +
guides(colour="none") +
Expand Down Expand Up @@ -171,7 +171,7 @@ ggplot(metadata, aes(smokingstatus, COTININE, fill = smokingstatus)) +
stat_boxplot() +
scale_fill_manual(values = scale_palette) +
theme_bw() +
scale_x_discrete(labels = c("Cigarette\nsmokers","Never\nsmokers","Former\nsmokers","Alternative\nsmokers","Secondhand\nsmoke")) +
scale_x_discrete(labels = c("Never\nsmokers","Cigarette\nsmokers", "Former\nsmokers","Alternative\nsmokers","Secondhand\nsmoke")) +
xlab('Reported smoking status') +
ylab('Serum Cotinine (ng/ml)') +
guides(fill = FALSE) +
Expand Down Expand Up @@ -416,6 +416,7 @@ res.tax <-
res.maxfold <-
tapply(res.tax$log2FoldChange, res.tax$Genus, function(x)
max(x))
res.maxfold <- sort(res.maxfold, T)
# res.tax["New.ReferenceOTU179","Genus"] <- res.tax["New.ReferenceOTU179","Phylum"] %>% as.character
res.tax$Genus <-
Expand Down

0 comments on commit a18ac6d

Please sign in to comment.