-
Notifications
You must be signed in to change notification settings - Fork 635
Closed
Description
I am trying to save a static plot form plotly in Rstudio but when i try to save from saveWidget function, and orca, the image that function returns is blank.
I have installed orca procedure, and the code is the following:
# insert reprex here
library(htmlwidgets)
library(plotly)
fig <- plot_ly(
type = "indicator",
mode = "gauge+number+delta",
value = 6.7,
title = list(text = "Prelios Real Estate Risk Index", font = list(size = 24)),
delta = list(reference = 7.2, increasing = list(color = "#922B21"),decreasing=list(color="#1E8449")),
gauge = list(
axis = list(range = list(1, 9), tickwidth = 1, tickcolor = "#264E33"),
bar = list(color = "#ffffff00"),
bgcolor = "white",
borderwidth = 0.05,
bordercolor = "black",
steps = list(
list(range = c(1,2.3), color = "#264E33"),
list(range = c(2.4,3.9), color = "#28B463"),
list(range = c(4,5.9), color = "#F4D03F"),
list(range = c(6,6.9), color = "#D4AC0D"),
list(range = c(7,8), color = "#C0392B"),
list(range = c(8.1,9), color = "#7B241C")
),
threshold = list(
line = list(color = "#212F3C", width = 4),
thickness = 2,
value = 7.2)))
fig <- fig %>%
layout(
margin = list(l=20,r=30),
paper_bgcolor = "#F4F6F7",
font = list(color = "#264E33", family = "Calibri"))
orca(fig,path,format='jpeg')Thanks
Roman
Metadata
Metadata
Assignees
Labels
No labels
