timelyportfolio
timelyportfolio
your second example works fine (I think) for me except there is an extra comma in this line. ``` formattable(,list( SL_Mean = color_tile("green", "purple")) ) ``` If I remove the...
If ok let's iterate a little more.
@renkun-ken great idea. I will work on examples with other widgets.
I think some patterns are starting to emerge as we work through this. Steps to include `htmlwidget` in `formattable` cells. 1. create `htmlwidget` 2. convert with `as.character(as.tags(..our htmlwidget..))` 3. include...
@mexindian, yes we can include in a `dplyr` chain. Let's see it with `scatterD3`. ``` library(scatterD3) library(formattable) library(dplyr) scatter_cell % summarize_each(funs(mean)) %>% mutate( Sepal.Scatter = scatter_cell( iris$Sepal.Length, iris$Sepal.Width, width =...
And to push it a little further, here is a combination of `lm` with `scatterD3`. ``` ft_lm % group_by(Species) %>% summarize( Sepal = paste0( tags$pre(paste0( capture.output(lm(Sepal.Length~Sepal.Width, data=.)), collapse = "\n"...
good points @mexindian, and unfortunately a thorough understanding of `dplyr` is necessary for this. Hopefully, we can abstract some of this away. Also, for these combinations of `summarize_*`, `pipeR` could...
Makes sense but I wonder if after all the arguments we need if a user might just be better off using `dplyr` directly and we could provide simple helpers for...
@mexindian, sure email me, and we can debug.
This is unfortunately not built for use with `LaTeX`. Somebody somewhere might be able to get it to work, but it will not be easy.