Comments (5)
Hello,
for now, I have no idea what is going on.
Can you provide a reproducible example (a code I could ship in a simple shiny app)?
Thanks
David
from ggiraph.
Here is what I tried (but it works):
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(ggiraphExtra)
library(ggiraph)
xx <- ggPoints(aes(x=wt,y=mpg,color=am),data=mtcars,method="lm",interactive=TRUE)
ui <- fluidPage(
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(),
# Show a plot of the generated distribution
mainPanel(
ggiraphOutput("distPlot")
)
)
)
# Define server logic required to draw a histogram
server <- function(input, output) {
output$distPlot <- renderggiraph({
print(xx)
})
}
# Run the application
shinyApp(ui = ui, server = server)
from ggiraph.
It is related to renderUI.
Followings are reproducible example.
I made a single file shiny app.
library(shiny)
library(ggiraph)
ui <- fluidPage(
uiOutput("test")
)
server <- function(input, output) {
output$test=renderUI({
tagList(
ggiraphOutput("Plot"),
plotOutput("Plot1")
)
})
output$Plot <- renderggiraph({
g <- ggplot(mpg, aes( x = displ, y = cty, color = hwy) ) + theme_minimal()
my_gg <- g + geom_point_interactive(aes(tooltip = model), size = 2)
ggiraph(code = print(my_gg), width = .7)
})
output$Plot1 <- renderPlot({
g <- ggplot(mpg, aes( x = displ, y = cty, color = hwy) ) + theme_minimal()
g+geom_point()
})
}
shinyApp(ui = ui, server = server)
from ggiraph.
Sorry, I can't reproduce, everything is ok on my local installation.
Do you have other informations that could help? Also in the link you sent (http://r-ggplot2.com:3838/explore), there is no error.
from ggiraph.
In large shiny app, you have to put one or more ggiraphoutput in ui.R. If you put all ggiraphoutput in server.ui(only uiOutput in ui.R), the ggiraphoutput is not able to be seen in certain circumstances.
I am not sure the reason.
from ggiraph.
Related Issues (20)
- `geom_interactive_col` tooltip messes up order of categories HOT 2
- Feature request-hover text autocoloring HOT 1
- Can't load ggiraph with dev ggplot2 HOT 3
- geom_ribbon_interactive hover not selecting both ymin and ymax
- Custom tooltip label for `zoom_off` does not appear in plot toolbar HOT 1
- Feature request-Add a button to draw geometries HOT 1
- legend not plotting when using `scale_linetype_manual()` and `scale_colour_manual()` HOT 4
- Enable ability to change SVG role for accessibility HOT 1
- Output preprocessor for R Shiny testing HOT 2
- Respect RNG seed for SVG IDs HOT 3
- girafe and piping HOT 2
- Transparent background HOT 2
- ggiraph fails to install error code 1 HOT 1
- Could geom_*_interactive support trailing comma's? HOT 1
- Specifying svg_width/height changes legend pattern HOT 1
- geom_col_interactive() ignoring specified order of stacked bars (duplicate of #265) HOT 2
- y-axis alignment issue when changing fonts HOT 2
- geom_hline_interactive with coord_polar not working HOT 4
- Toolbar elements initial state HOT 2
- ggiraph is not working with R 4.4.0 for Windows HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggiraph.