简体   繁体   English

使用Foundation 4 CSS时R Markdown图的图像质量损失

[英]R Markdown Plot Image Quality Loss When Using Foundation 4 CSS

So I've been using R markdown to make some reports and I decided to spruce it up a bit by using the Foundation 4 CSS framework with it. 因此,我一直在使用R markdown进行一些报告,因此我决定使用Foundation 4 CSS框架对其进行精简。

I embedded the minimized Foundation css in the file and then applied the styles to the R markdown code and it works fine but the quality of the image that is coming out is much lower than what was coming out via just R markdown. 我将最小化的Foundation css嵌入文件中,然后将样式应用于R markdown代码,它可以正常工作,但是输出的图像质量比仅通过R markdown输出的图像质量低得多。

Inside the R code I have: 在R代码中,我有:

cat('<div class = "Row">')
cat('<div class = "Foundationy grid columns">')
Bunch of R plot code here
cat('</div>')
etc...

I guess Foundation is changing the image quality somehow? 我猜想Foundation正在以某种方式改变图像质量?

Any ideas on what I can change in the CSS to fix this? 关于我可以更改CSS来解决此问题的任何想法?

I switched to Toast which is a much more lightweight CSS framework and the problem disappeared. 我改用了Toast,它是一个更加轻量级的CSS框架,问题消失了。

I'm assuming Foundation has some style that effects images. 我假设Foundation具有某种会影响图像的样式。 I didn't locate the style but switching frameworks was a decent workaround. 我没有找到样式,但是切换框架是一个不错的解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM