diff --git a/pdf/S02c.pdf b/pdf/S02c.pdf new file mode 100644 index 0000000..efe3920 Binary files /dev/null and b/pdf/S02c.pdf differ diff --git a/pdf/fig_S02_synthesis.pdf b/pdf/fig_S02_synthesis.pdf index 9662968..a0e47a2 100644 Binary files a/pdf/fig_S02_synthesis.pdf and b/pdf/fig_S02_synthesis.pdf differ diff --git a/supplementary_fig02.md b/supplementary_fig02.md index 6279be5..d5f6938 100644 --- a/supplementary_fig02.md +++ b/supplementary_fig02.md @@ -515,3 +515,24 @@ for(i in seq_along(msSamples) ){ ``` ![](supplementary_fig02_files/figure-commonmark/unnamed-chunk-22-1.png) + +Plot a figure: + +``` r +# Set up a 2x1 layout for subplots +par(mfrow = c(2, 1), mar = c(3, 4, 1, 1)) + +# Plot the first sample data +ms.plot(msdata[msdata$sample == 'RXN488',], col = RColorBrewer::brewer.pal(6, 'PuOr')[2]) +# Add label for the first sample +text(1700, 90, mylabels[2], col = RColorBrewer::brewer.pal(6, 'PuOr')[2]) + +# Reset the layout for the second subplot +par(mar = c(4, 4, 1, 1)) +# Plot the second sample data +ms.plot(msdata[msdata$sample == 'RXN594',], col = RColorBrewer::brewer.pal(6, 'PuOr')[6]) +# Add label for the second sample +text(1700, 90, mylabels[1], col = RColorBrewer::brewer.pal(6, 'PuOr')[6]) +``` + +![](supplementary_fig02_files/figure-commonmark/unnamed-chunk-23-1.png) diff --git a/supplementary_fig02.qmd b/supplementary_fig02.qmd index b73eddd..707b1ad 100644 --- a/supplementary_fig02.qmd +++ b/supplementary_fig02.qmd @@ -305,3 +305,21 @@ for(i in seq_along(msSamples) ){ ms.plot(msdata[msdata$sample==msSamples[i],], main=msSamples[i], col=i) } ``` + +Plot a figure: +```{r} +# Set up a 2x1 layout for subplots +par(mfrow = c(2, 1), mar = c(3, 4, 1, 1)) + +# Plot the first sample data +ms.plot(msdata[msdata$sample == 'RXN488',], col = RColorBrewer::brewer.pal(6, 'PuOr')[2]) +# Add label for the first sample +text(1700, 90, mylabels[2], col = RColorBrewer::brewer.pal(6, 'PuOr')[2]) + +# Reset the layout for the second subplot +par(mar = c(4, 4, 1, 1)) +# Plot the second sample data +ms.plot(msdata[msdata$sample == 'RXN594',], col = RColorBrewer::brewer.pal(6, 'PuOr')[6]) +# Add label for the second sample +text(1700, 90, mylabels[1], col = RColorBrewer::brewer.pal(6, 'PuOr')[6]) +``` diff --git a/supplementary_fig02_files/figure-commonmark/unnamed-chunk-23-1.png b/supplementary_fig02_files/figure-commonmark/unnamed-chunk-23-1.png new file mode 100644 index 0000000..542f4c8 Binary files /dev/null and b/supplementary_fig02_files/figure-commonmark/unnamed-chunk-23-1.png differ