Wondering if anyone has tried using crosstalk with sunburst plots. My goal is to have two subursts with same labelling that both respond to a click.
Related
I am using the package trelliscopejs https://hafen.github.io/trelliscopejs/ for generating trellis plots in my flexdashboard.
My question is that for the plots, is it possible to have a default view based on pre-selection of the plot filters?
eg) Please see the image below,
https://www.r-bloggers.com/2022/03/how-i-analyze-100-ggplots-at-once/
Is it possible to preselect the filters and display them as default while opening trellis plot dashboard?
plot_ly(x,y,z, type="scatter3d") + theme_igray()
Returns NULL. Is it possible at all to have theme with plotly?
The theme_igray() call looks like something from ggplot2. I don't think the plotly package supports ggplot2 themes, but ggplotly can convert a ggplot2 graph to plotly format, so you could theme it in ggplot2 then convert.
Unfortunately, there's no ggplot2 graph that corresponds to type="scatter3d". The gg3D package will produce a 2D graph in plotly.
I am trying to create Grouped bar chart similar to the below attached image with 2 Dimensions and one measure.
[Grouped Bar Chart] [1]: https://i.stack.imgur.com/rUQ5Y.png
I can achieve this using ggplot2 package, but the charts created using ggplot are not interactive like when I place cursor on a bar it wont show the tooltips. So I am preferring ggplot2 here.
How can I create chart similar to the attached image using googleVis package?
We used plotly package for achieving interactive visualizations instead of google visualizations which satisfied our requirement of Grouped bar chart .
I want to create a new figure with interactive R-plots (with tooltips).
To show how I wish to have my plots I give an example using the mtcars data. I am using the package scatterD3 to get tooltips:
library(scatterD3)
data(mtcars)
tooltips <- paste('This is an incredible <strong>',rownames(mtcars),'</strong><br />with',mtcars$cyl,'cylinders !')
scatterD3(x=mtcars$wt,y=mtcars$mpg,tooltip_text=tooltips)
Now I don't want only one plot of this type in one figure. Usually it is possible to use par(mfrow=(i,j)) to create a figure with more than one plot. But it seems not to work for my interactive plots. Is there a way to do this?
Have you given a look to the plotly R package?
It has also a function to render the ggplots in ggplotly
An idea could be to create a multiplot with ggplot2 and than render it with ggplotly.
I've not yet tried it, so I don't know if it's really possible.
I am interested in making a stacked dotplot like the one in link below in ggplot2.
The following was made using dotPlot function in BHH2 package but does not have the coloring and faceting ease of ggplot2.
There is a geom_dotplot which create dotplots. Update your ggplot2 if you don't have it. It is a relatively recent addition.
See this for examples.