[英]How to export a plot as static Image from plotly with high quality?
您可以在创建 Plotly 对象时修改模式栏。 (您也可以稍后添加更改。)您可以在此处查看有关模式栏的更多选项。
例如:
library(plotly)
data(gapminder, package = "gapminder")
plot_ly(data = gapminder, x = ~continent, y = ~lifeExp,
type = "bar") %>%
config(
toImageButtonOptions = list(
format = "svg",
filename = "myplot",
width = 600,
height = 700
)
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.