小编POW*_*123的帖子

如何设置图表图表在R中具有透明背景?

到目前为止,这就是我所拥有的:

f1 <- list(
   family = "Arial, sans-serif",
   size = 25,
   color = "white"
)
f2 <- list(
   family = "Old Standard TT, serif",
   size = 14,
   color = "black"

)
a <- list(
   title = "SALES PER SONG",
   titlefont = f1,
   showgrid = FALSE,
   showticklabels = TRUE,
   showline=TRUE,
   tickangle = 45,
   tickfont = f2
  )

 salesplot <-plot_ly(producersales, type="scatter", x=Producer, y=SalesPerSong, color=SongRange, colors=cols, mode="markers", size=SalesPerSong) %>% 
layout(xaxis = a, yaxis = a)
Run Code Online (Sandbox Code Playgroud)

我尝试paper_bgcolor=#00000000, plot_bgcolor=#00000000在x和y轴信息之后添加layout(),但是当我运行命令时,我得到了加号.我不知道该怎么做,所以任何帮助都表示赞赏.谢谢!

r colors plotly r-plotly

8
推荐指数
1
解决办法
9008
查看次数

标签 统计

colors ×1

plotly ×1

r ×1

r-plotly ×1