-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BiocStyle::html_document doesn't completely respect mfrow #65
Comments
This behaviour is because BiocStyle automatically crops images, so the two columns of white space are removed. Perhaps it shouldn't do that if You can stop the behaviour by setting ```{r, fig.wide=TRUE, fig.asp=1/3, crop=NULL}
par(mfrow=c(1,3), mar=c(5.1, 4.1, 4.1, 2.1))
for (i in 1:10) {
plot(1,i)
}
``` gets me |
Thanks, it wasn't obvious that |
…ound taken This is also an opportunity to link to the relevant GitHub issues and Bioc-devel threads. Cropping images through `magick::image_trim()` as done by default by `BiocStyle::html_document()` can fail on Linux. This could be an ImageMagick issue or an issue about lack of resources. The full investigative report is at https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016650.html. This is related to: yihui/knitr#1785 (comment) yihui/knitr#1796 Bioconductor/BiocStyle#65 (comment) ropensci/magick#171 ropensci/magick#194 In regionReport version 1.21.10 I have opted by using `crop = NULL` to disable cropping of images by `BiocStyle::html_document()` and thus avoid the issues with `ImageMagick` either coming from `magick`, from the version of `ImageMagick` installed on the Linux Bioconductor build machine and devel docker, or from resources in these two Linux environments as described in the investigative report. About a month ago I also saw failures on Windows on Bioc 3.10. Whether they were caused by ggbio 1.35.1 or this issue will remain a mystery. But it's likely that this `magick::image_trim()` issue also affected the Bioconductor windows builder. The related bioc-devel threads are: https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016538.html https://stat.ethz.ch/pipermail/bioc-devel/2020-March/016365.html
Consider the following:
When this is
rmarkdown::render()
d, all is well, with the last plot occupying one third of the width:However, if we change
html_document
toBiocStyle::html_document
, we get instead:In short, the last plot is inflated to occupy the entire screen; this is pretty ugly.
Session information
The text was updated successfully, but these errors were encountered: