Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use with Reactive Data in Shiny #27

Open
majerus opened this issue May 29, 2015 · 1 comment
Open

Use with Reactive Data in Shiny #27

majerus opened this issue May 29, 2015 · 1 comment
Assignees

Comments

@majerus
Copy link

majerus commented May 29, 2015

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.

@hrbrmstr hrbrmstr self-assigned this Jun 12, 2015
@hrbrmstr
Copy link
Owner

can you do a dput(head(dataset)) and dput(head(zipsInBounds())) so I can see data types? - thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants