How to set plotly chart to have a transparent background in R?

前端 未结 2 1129
情话喂你
情话喂你 2021-02-07 21:32

Here\'s what I have, so far:

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


        
2条回答
  •  盖世英雄少女心
    2021-02-07 21:57

    I find toy need to use rgba AND fig_bgcolor in layout

    plt %>%
        layout(plot_bgcolor  = "rgba(0, 0, 0, 0)",
               paper_bgcolor = "rgba(0, 0, 0, 0)",
               fig_bgcolor   = "rgba(0, 0, 0, 0)")
    

提交回复
热议问题