CodeMeARiver
CodeMeARiver

Reputation: 89

Creating richer speedometer gauge charts for dashboards in R/R-studio?

Please can you help me? Can anyone help me/guide me on how I can create speedometer gauges like the image below using R/R-studio? I want to move away from depending on Excel, especially as my datasets are quite large. Thanks in advance :)

Current Speedometer charts that I want to move into R

Upvotes: 2

Views: 2750

Answers (1)

Victor Mose
Victor Mose

Reputation: 31

Try using gvisGauge() from the googlevis package, e.g. this picture from this blog post:

enter image description here

which uses this code:

Gauge <-  gvisGauge(m1, 
           options=list(min=0, max=20000, greenFrom=0,
                        greenTo=5000, yellowFrom=5000, yellowTo=15000,
                        redFrom=15000, redTo=20000, width=800, height=800))
#
plot(Gauge)

Upvotes: 3

Related Questions