[R] plotly question

Thomas Subia tg@77m @end|ng |rom y@hoo@com
Fri Jul 21 15:19:14 CEST 2023


Colleagues

Here is my reproducible code

plot_ly(
  domain = list(x = c(0, 1), y = c(0, 1)),
  value = 2874,
  title = list(text = "Generic"),
  type = "indicator",
  mode = "gauge+number+delta",
  delta = list(reference = 4800),
  gauge = list(
    axis =list(range = list(NULL, 5000)),
    steps = list(
    list(range = c(0, 4800), color = "white"),
    list(range = c(4800, 6000), color = "red")),
    threshold = list(
    line = list(color = "black", width = 6),
    thickness = 0.75,
    value = 4800)))

How can I change the indicator color from green to some other color?

How can I change the typeface and font size of the speedometer tick mark font size?

Thomas Subia

	[[alternative HTML version deleted]]



More information about the R-help mailing list