enter the commit message for your changes. Lines starting
This commit is contained in:
parent
b8ff7995ac
commit
9c141326aa
2 changed files with 80 additions and 62 deletions
|
@ -40,8 +40,9 @@ revised_nrow = nrow(lf_fp_npa); revised_nrow
|
|||
orig_nrow == revised_nrow
|
||||
|
||||
head(lf_fp_npa$value)
|
||||
|
||||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
||||
# log all values and reassign
|
||||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
||||
lf_fp_npa$value = log10(lf_fp_npa$value)
|
||||
head(lf_fp_npa$value)
|
||||
vl_temp_fix2 = lf_fp_npa[lf_fp_npa$mediator=="vl_pfu_ul",]
|
||||
|
@ -77,46 +78,56 @@ npa_plot_annot = annotate_figure(npa_plot
|
|||
, rot = 90
|
||||
, size = 18))
|
||||
npa_plot_annot
|
||||
#dev.off()
|
||||
#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#
|
||||
#-------------
|
||||
# SAM
|
||||
#-------------
|
||||
#my_sample_sam = "SAM"
|
||||
#fp_sam = length(unique(lf_fp_sam$mosaic)); fp_sam
|
||||
head(lf_fp_sam$value)
|
||||
|
||||
#cat("\nPlotting boxplots with stats for:", my_sample_sam
|
||||
# , "\n========================================================\n")
|
||||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
||||
# log all values and reassign
|
||||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
||||
lf_fp_sam$value = log10(lf_fp_sam$value)
|
||||
head(lf_fp_sam$value)
|
||||
|
||||
#plots_sam = doMyPlots(lf_fp_sam)
|
||||
#sam_plot = ggpubr::ggarrange(plotlist = plots_sam
|
||||
# , align = "hv"
|
||||
# , ncol = 7
|
||||
# , nrow = 5
|
||||
# , common.legend = T)
|
||||
my_sample_sam = "SAM"
|
||||
fp_sam = length(unique(lf_fp_sam$mosaic)); fp_sam
|
||||
|
||||
cat("\nPlotting boxplots with stats for:", my_sample_sam
|
||||
, "\n========================================================\n")
|
||||
|
||||
plots_sam = doMyPlots(lf_fp_sam)
|
||||
sam_plot = ggpubr::ggarrange(plotlist = plots_sam
|
||||
, align = "hv"
|
||||
, ncol = 7
|
||||
, nrow = 5
|
||||
, common.legend = T)
|
||||
#sam_plot
|
||||
#sam_plot_annot = annotate_figure(sam_plot
|
||||
# , top = text_grob(my_sample_sam
|
||||
# , color = "blue"
|
||||
# , face = "bold"
|
||||
# , size = 14)
|
||||
# , bottom = text_grob(paste0("Mosaic data\nFlu positive adults (n=", fp_sam, ")")
|
||||
# , color = "blue"
|
||||
# , hjust = 1
|
||||
# , x = 0.98
|
||||
# , face = "italic"
|
||||
# , size = 10)
|
||||
# , left = text_grob("Levels (pg/ml)"
|
||||
# , color = "black"
|
||||
# , rot = 90
|
||||
# , size = 18))
|
||||
#sam_plot_annot
|
||||
#dev.off()
|
||||
sam_plot_annot = annotate_figure(sam_plot
|
||||
, top = text_grob(my_sample_sam
|
||||
, color = "blue"
|
||||
, face = "bold"
|
||||
, size = 14)
|
||||
, bottom = text_grob(paste0("Mosaic data\nFlu positive adults (n=", fp_sam, ")")
|
||||
, color = "blue"
|
||||
, hjust = 1
|
||||
, x = 0.98
|
||||
, face = "italic"
|
||||
, size = 10)
|
||||
, left = text_grob("Levels (pg/ml)"
|
||||
, color = "black"
|
||||
, rot = 90
|
||||
, size = 18))
|
||||
sam_plot_annot
|
||||
#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#
|
||||
#------------------------------------------
|
||||
#-------------
|
||||
# SERUM
|
||||
#-------------
|
||||
head(lf_fp_serum$value)
|
||||
# reassign
|
||||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
||||
# log all values and reassign
|
||||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
||||
lf_fp_serum$value = log10(lf_fp_serum$value)
|
||||
head(lf_fp_serum$value)
|
||||
|
||||
|
@ -151,3 +162,5 @@ serum_plot_annot = annotate_figure(serum_plot
|
|||
serum_plot_annot
|
||||
dev.off()
|
||||
###############################################################
|
||||
# END OF SCRIPT #
|
||||
###############################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue