-
Notifications
You must be signed in to change notification settings - Fork 207
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
Combine multiple widgets in a single htmlwidget object. #226
Comments
Great stuff @cuche27! I find arranging multiple htmlwidgets to be painful as well, and would love an official solution. BTW, in the dev version of plotly, plotly object are htmlwidget objects, so we won't be needing this in if (is(x, "plotly_hash")) {
if(requireNamespace("plotly")) {
x <- plotly::as.widget(x)
x$width <- x$height <- "100%"
return(x)
}
else return("Package plotly is missing")
} |
Hello and happy new year, I wanted to inform you that I have finally included my function The purpose of this package is to help users to create easily and quickly graphical interface in order to change the data or the graphical parameters of an htmlwidget. It uses shiny gadget, but the user does not have to know anything about shiny, HTML or CSS. I have submitted it to CRAN today and I hope it will be published soon. |
@FrancoisGuillem This looks really awesome! I think it would be nice to start a section on the htmlwidgets site where we can point users to packages like |
@FrancoisGuillem <https://github.com/FrancoisGuillem> one addition I'd love
to see here is to make it possible to publish manipulateWidget based
layouts. From what I can see now it looks like manipulateWidget is only for
local interactive use in the Viewer pane. If it had the right print methods
though it seems like you could include it within an R Markdown document
with runtime: shiny which would allow it to be deployed directly to end
users (this is sort of how ggviz works).
…On Wed, Jan 4, 2017 at 8:31 AM, Ramnath Vaidyanathan < ***@***.***> wrote:
@FrancoisGuillem <https://github.com/FrancoisGuillem> This looks really
awesome! I think it would be nice to start a section on the htmlwidgets
site where we can point users to packages like manipulateWidget that
enhance the feature set of htmlwidgets @jjallaire
<https://github.com/jjallaire> @jcheng5 <https://github.com/jcheng5>
@timelyportfolio <https://github.com/timelyportfolio> @yihui
<https://github.com/yihui> what do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#226 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGXx7TJJqqShOmwIRgrmzylYqkS6D7Uks5rO59IgaJpZM4JoiWl>
.
|
@ramnathv I agree that there are a few things long overdue for the website:
|
@jjallaire this is a very nice idea. What is the name of the method I need to write to implement it ? Is there a way to know that we are in "runtime: shiny" mode ? |
I just added prominent navigational and home page links to the flexdashboard and crosstalk packages (I gave them special consideration because they are core add-ons to the htmlwidgets package created by the same authors). Next we need to figure out a way to link prominently to "third-party" add-ons (it may be that the Gallery can already accommodate this, but it seems like distinguishing between layout oriented widget aggregators and actual widgets would be useful) |
@FrancoisGuillem <https://github.com/FrancoisGuillem> let me take a closer
look at your implementation then I'll propose the right change.
…On Wed, Jan 4, 2017 at 10:01 AM, François Guillem ***@***.***> wrote:
@jjallaire <https://github.com/jjallaire> this is a very nice idea. What
is the name of the method I need to write to implement it ? Is there a way
to know that we are in "runtime: shiny" mode ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#226 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGXx7y8Gliz6ktodvazxIkPklrKCXa7ks5rO7RGgaJpZM4JoiWl>
.
|
@FrancoisGuillem Here is a diff that shows what is required to support printing jjallaire/manipulateWidget@3386099?w=1 There is also a simple example which I put into Note that I would have given this to you as a PR but my changes for some reason created a diff with every line changed (just whitespace) and I didn't think you'd want to merge a change with so much diff noise. |
@jjallaire Wow that was fast ! Thank you :). Can you add yourself as a contributor in the DESCRIPTION file ? |
I was thinking that it wouldn't be a PR (because of the whitespace issues)
so you could add me in the DESCRIPTION file on your master branch.
One other thing is that you'll want to import the knitr package so you can
make the call to determine whether you are in runtime: shiny.
…On Wed, Jan 4, 2017 at 11:24 AM, François Guillem ***@***.***> wrote:
@jjallaire <https://github.com/jjallaire> Wow that was fast ! Thank you
:). Can you add yourself as a contributor in the DESCRIPTION file ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#226 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGXx_AJlpLn7TflUA4uhuA2o6OihkcSks5rO8eggaJpZM4JoiWl>
.
|
@jjallaire Ok, thank you :) |
It would be nice to be able to combine multiple widgets in the single like one can combine multiple static plots in a single one using
par(mfrow = c(...))
, for instance to compare the same graphic generated on different datasets or to visualize different informations about the same data.For now, to do so one has to create a complete shiny app/gadget or to create a rmarkdown document. But during analysis work, it would be be nice to be able to quickly combine widgets with a simple function.
I implemented a function that do this using
htmltools
andminiUI
but it is very hacky and has problems of sizing (0px height on rmarkdown documents). Moreover, the function needs to perform a special processing for each kind of htmlwidget.The text was updated successfully, but these errors were encountered: