As you apparently haven't received any responses yet, I'll try to
suggest something useful. However, I have absolutely zero experience
with plotly, so this is just from general principles and reading the
plot_ly Help file, which says for the "..." arguments:

"Arguments (i.e., attributes) passed along to the trace type. See
schema() for a list of acceptable attributes for a given trace type
(by going to traces -> type -> attributes). Note that attributes
provided at this level may override other arguments (e.g. plot_ly(x =
1:10, y = 1:10, color = I("red"), marker = list(color = "blue")))."

So I would **guess** that you needs to go to ?schema to see if the
further attributes of your "gauge" type that you wish to change are
there.

Alternatively, plotly is a package from posit.co, formerly RStudio;
they have an extensive support site and community here:
https://posit.co/support/
So you may have success there.

Finally, I assume you have tried web searching appropriate search
queries, but if not, you should do so. It is sometimes surprising how
much you can find that way.

... and, again, apologies if my ignorance means my suggestions are useless.

Cheers,
Bert


On Fri, Jul 21, 2023 at 6:19 AM Thomas Subia via R-help
<r-help@r-project.org> wrote:
>
> 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]]
>
> ______________________________________________
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to