Open majerus opened 9 years ago
I am new to metricsgrphics, but it looks like a useful tool. I am trying to integrate a histogram into a shiny dashboard.
The following works, but the data is static:
output$hist <- renderMetricsgraphics(
dataset %>% mjs_plot(var1, width=300, height=300) %>% mjs_histogram() %>% mjs_labs(x_label=sprintf("x label")) )
The following does not work:
zipsInBounds() %>% mjs_plot(var1, width=300, height=300) %>% mjs_histogram() %>% mjs_labs(x_label=sprintf("x label")) )
Thanks for any guidance/updates.
can you do a dput(head(dataset)) and dput(head(zipsInBounds())) so I can see data types? - thx
dput(head(dataset))
dput(head(zipsInBounds()))
I am new to metricsgrphics, but it looks like a useful tool. I am trying to integrate a histogram into a shiny dashboard.
The following works, but the data is static:
output$hist <- renderMetricsgraphics(
dataset %>% mjs_plot(var1, width=300, height=300) %>% mjs_histogram() %>% mjs_labs(x_label=sprintf("x label")) )
The following does not work:
output$hist <- renderMetricsgraphics(
zipsInBounds() %>% mjs_plot(var1, width=300, height=300) %>% mjs_histogram() %>% mjs_labs(x_label=sprintf("x label")) )
Thanks for any guidance/updates.