Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How can I capture the node label or value at runtime for bubbles chart using bubble::renderBubbles

$
0
0

@rumsinha wrote:

1
down vote
favorite

I am creating bubble plot using library(bubbles) in r and shiny.

I get the plot but my requirement is I should be able to capture the value in each node when user clicks so that I can create my next plot based on this input.

How can I plugin the javascript to get the desired output.

Appreciate any help on this.

ui.R

bubblesOutput("Plot", width = "100%", height = 600)

server.R

output$Plot <- renderBubbles({

df <- datadf[,c("A","B")]

df$B<-as.numeric(df$B)

bubbles(value=df$B, label=df$A, key = df$A,color = rainbow(length(count), alpha=NULL))

})

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles