@@ -75,6 +75,18 @@ visualize.heatmap(dataImput, pkg = "pheatmap",
7575When protein names are excessively long, it is recommended to set
7676` show_rownames = FALSE ` to view the full heatmap.
7777
78+ If the input data contains an NA value, the heatmap will be binary for
79+ missing data patterns, i.e., whether values are present or absent.
80+
81+ ``` r
82+
83+ visualize.heatmap(dataSet , pkg = " pheatmap" ,
84+ cluster_cols = TRUE , cluster_rows = TRUE ,
85+ show_colnames = TRUE , show_rownames = TRUE )
86+ ```
87+
88+ ![ ] ( visualization_files/figure-html/unnamed-chunk-5-1.png )
89+
7890- Option 2 use the source package ` ggplot2 ` to generate a ggplot object
7991 but does not include the dendrogram.
8092
@@ -83,12 +95,19 @@ When protein names are excessively long, it is recommended to set
8395visualize.heatmap(dataImput , pkg = " ggplot2" )
8496```
8597
86- ![ ] ( visualization_files/figure-html/unnamed-chunk-5 -1.png )
98+ ![ ] ( visualization_files/figure-html/unnamed-chunk-6 -1.png )
8799
88100In a heatmap, similar colors within a row indicate relatively consistent
89101values, suggesting similar protein expression levels across different
90102samples.
91103
104+ ``` r
105+
106+ visualize.heatmap(dataSet , pkg = " ggplot2" )
107+ ```
108+
109+ ![ ] ( visualization_files/figure-html/unnamed-chunk-7-1.png )
110+
92111## MA plot
93112
94113### Examples
@@ -100,7 +119,7 @@ visualize.ma(anlys_ma$`100pmol-50pmol`, M.thres = 1)
100119# > (`geom_text_repel()`).
101120```
102121
103- ![ ] ( visualization_files/figure-html/unnamed-chunk-6 -1.png )
122+ ![ ] ( visualization_files/figure-html/unnamed-chunk-8 -1.png )
104123
105124where ` M.thres = 1 ` means the M thresholds are set to -1 and 1. The
106125scatters are split into three parts: up regulation (M \> 1), no
@@ -118,7 +137,7 @@ visualize.ma(anlys_ma, M.thres = 1)
118137# > (`geom_text_repel()`).
119138```
120139
121- ![ ] ( visualization_files/figure-html/unnamed-chunk-7 -1.png )
140+ ![ ] ( visualization_files/figure-html/unnamed-chunk-9 -1.png )
122141
123142### Details
124143
@@ -165,7 +184,7 @@ visualize.rank(dataImput, listName = "POLK_HUMAN",
165184 facet = c(" Replicate" , " Condition" ))
166185```
167186
168- ![ ] ( visualization_files/figure-html/unnamed-chunk-8 -1.png )
187+ ![ ] ( visualization_files/figure-html/unnamed-chunk-10 -1.png )
169188
170189## Histogram of fold changes and p-values for test
171190
@@ -176,7 +195,7 @@ visualize.rank(dataImput, listName = "POLK_HUMAN",
176195visualize.test(anlys_modt $ `100pmol-50pmol` )
177196```
178197
179- ![ ] ( visualization_files/figure-html/unnamed-chunk-9 -1.png )
198+ ![ ] ( visualization_files/figure-html/unnamed-chunk-11 -1.png )
180199
181200If the input ` dataSet ` is the whole list ` anlys_modt ` , ** msDiaLogue**
182201will produce individual subplots corresponding to each comparison.
@@ -186,7 +205,7 @@ will produce individual subplots corresponding to each comparison.
186205visualize.test(anlys_modt )
187206```
188207
189- ![ ] ( visualization_files/figure-html/unnamed-chunk-10 -1.png )
208+ ![ ] ( visualization_files/figure-html/unnamed-chunk-12 -1.png )
190209
191210### Details
192211
@@ -211,7 +230,7 @@ combinations of sets.
211230visualize.upset(dataSet )
212231```
213232
214- ![ ] ( visualization_files/figure-html/unnamed-chunk-11 -1.png )
233+ ![ ] ( visualization_files/figure-html/unnamed-chunk-13 -1.png )
215234
216235This plot reveals that 42 proteins are shared by 50pmol, 100pmol, and
217236200pmol, while only 3 proteins are shared by 100 pmol and 200pmol, but
@@ -230,7 +249,7 @@ visualize.venn(dataSet, show_percentage = TRUE,
230249 saveRes = TRUE )
231250```
232251
233- ![ ] ( visualization_files/figure-html/unnamed-chunk-12 -1.png )
252+ ![ ] ( visualization_files/figure-html/unnamed-chunk-14 -1.png )
234253
235254where ` saveRes = TRUE ` refers to the data containing logical columns
236255representing sets in Venn plot information will be saved as a .csv file
@@ -251,7 +270,7 @@ visualize.volcano(anlys_modt$`100pmol-50pmol`, P.thres = 0.05, F.thres = 1)
251270# > (`geom_text_repel()`).
252271```
253272
254- ![ ] ( visualization_files/figure-html/unnamed-chunk-13 -1.png )
273+ ![ ] ( visualization_files/figure-html/unnamed-chunk-15 -1.png )
255274
256275If the input ` dataSet ` is the whole list ` anlys_modt ` , ** msDiaLogue**
257276will produce individual subplots corresponding to each comparison.
@@ -263,7 +282,7 @@ visualize.volcano(anlys_modt, P.thres = 0.05, F.thres = 1)
263282# > (`geom_text_repel()`).
264283```
265284
266- ![ ] ( visualization_files/figure-html/unnamed-chunk-14 -1.png )
285+ ![ ] ( visualization_files/figure-html/unnamed-chunk-16 -1.png )
267286
268287### Details
269288
@@ -291,7 +310,7 @@ visualize.scree(anlys_pca, type = c("bar", "line"),
291310 label = TRUE , ncp = 10 )
292311```
293312
294- ![ ] ( visualization_files/figure-html/unnamed-chunk-15 -1.png )
313+ ![ ] ( visualization_files/figure-html/unnamed-chunk-17 -1.png )
295314
296315where ` label = TRUE ` adds information labels at the top of bars/points,
297316and ` ncp = 10 ` sets the number of dimension to be displayed.
@@ -305,7 +324,7 @@ and `ncp = 10` sets the number of dimension to be displayed.
305324visualize.score(anlys_pca , ellipse = TRUE , ellipse.level = 0.95 , label = TRUE )
306325```
307326
308- ![ ] ( visualization_files/figure-html/unnamed-chunk-16 -1.png )
327+ ![ ] ( visualization_files/figure-html/unnamed-chunk-18 -1.png )
309328
310329### Details
311330
@@ -329,7 +348,7 @@ provided), for each groups (condition) provided.
329348visualize.loading(anlys_pca , label = TRUE )
330349```
331350
332- ![ ] ( visualization_files/figure-html/unnamed-chunk-17 -1.png )
351+ ![ ] ( visualization_files/figure-html/unnamed-chunk-19 -1.png )
333352
334353### Details
335354
@@ -353,7 +372,7 @@ number of proteins, this plot can be unwieldy.
353372visualize.biplot(anlys_pca , ellipse = TRUE , ellipse.level = 0.95 , label = " all" )
354373```
355374
356- ![ ] ( visualization_files/figure-html/unnamed-chunk-18 -1.png )
375+ ![ ] ( visualization_files/figure-html/unnamed-chunk-20 -1.png )
357376
358377## VIP score plot
359378
@@ -370,7 +389,7 @@ each condition.
370389visualize.vip(anlys_plsda , comp = 1 , num = 10 , thres = 1 )
371390```
372391
373- ![ ] ( visualization_files/figure-html/unnamed-chunk-19 -1.png )
392+ ![ ] ( visualization_files/figure-html/unnamed-chunk-21 -1.png )
374393
375394[ ←
376395Previous] ( https://uconn-scs.github.io/msDiaLogue/articles/analysis.md )
0 commit comments