biomformat | Biom file format support in R/Bioconductor , vers | Genomics library
kandi X-RAY | biomformat Summary
kandi X-RAY | biomformat Summary
This is an R package for interfacing with both the JSON and HDF5 versions of the biom file format. This package includes basic tools for reading biom-format files, accessing and subsetting data tables from a biom object, as well as limited support for writing a biom-object back to a biom-format file.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of biomformat
biomformat Key Features
biomformat Examples and Code Snippets
Community Discussions
Trending Discussions on biomformat
QUESTION
I am currently trying to knit an R markdown document to html (or pdf) where in a certain chunk I generate multiple plots. I specify the captions through the fig.cap
argument in the chunk options with a vector of the same length as the number of plots. However, for this to work the chunk option message
has to be TRUE
.
The issue starts when a ggplot2 object is generated by a function in the chunk and I want to apply a new fill with viridis::scale_fill_viridis
. Which is fine, but inevitably throws a message/warning that there is already a fill applied to the ggplot2 object and that the viridis will replace it (Scale for 'fill' is already present. Adding another scale for 'fill', which will replace the existing scale
). I do not want to get this into the output of my markdown html. Using suppressMessages
apparently also suppresses the html (and pdf!) captions.
So my question is: is there a way to "unset" the existing scales attribute to avoid this message being generated? Short from that my only other option would be to dive into the code that generated the object in the first place. Or: is there a way that knitr preserves captions when the chunk option messages=F
?
A minimal working example would be the following code in an R markdown document:
...ANSWER
Answered 2017-Sep-01 at 15:07Take a look at a ggplot object, here p
:
str(p)
There's a lot of sub-structure. Take a look at p$scales
. It's a ScalesList. The following might help you:
i <- which(sapply(p$scales$scales, function(x) 'fill' %in% x$aesthetics))
p$scales$scales[[i]] <- NULL
QUESTION
I have created a barplot for metagenomic data using RStudio
...ANSWER
Answered 2018-Jan-18 at 07:12plot_bar
from the phyloseq
package uses ggplot
for plotting. You can look at the code for plot_bar
by typing plot_bar
in the console, which yields:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install biomformat
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page