You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have made the interactive plots and when I click different points in "A1" place(a scatter plot), it will give different scatter plot in "A2" place. Now the plots are shown in R/linked-charts. But how can I save the interactive plots? So I do not need rerun the code if I want to open the plots.
lc_scatter(
dat(
x = procdat_gen$Exprs, ## prodat_gen is a data.frame
y = procdat_gen$total,
label = procdat_gen$WellID,
on_click = function(k){wellname <<- k; updateCharts(c("A2"))}
),
place = "A1",
)
lc_scatter(
dat(
x = CurrSg[which(CurrSg$WellID == procdat_gen$WellID[wellname] ),]$X405.A.A, ## CurrSg is a data.frame
y = CurrSg[which(CurrSg$WellID == procdat_gen$WellID[wellname] ),]$X405.B.A
),
place = "A2",
)
best wishes
yuanqiang
The text was updated successfully, but these errors were encountered:
Yes, as long as your code is written in R, you need to have R running to execute it. You can translate it to JavaScript, and then it works stand-alone.
You could have a look at the JavaScript tutorial to see how that can be done. It should be quite easy -- unless you are completely unfamiliar with JavaScript.
Dear Simon,
I have made the interactive plots and when I click different points in "A1" place(a scatter plot), it will give different scatter plot in "A2" place. Now the plots are shown in R/linked-charts. But how can I save the interactive plots? So I do not need rerun the code if I want to open the plots.
library( rlc )
openPage(useViewer = F, layout="table2x1")
lc_scatter(
dat(
x = procdat_gen$Exprs, ## prodat_gen is a data.frame
y = procdat_gen$total,
label = procdat_gen$WellID,
on_click = function(k){wellname <<- k; updateCharts(c("A2"))}
),
place = "A1",
)
lc_scatter(
dat(
x = CurrSg[which(CurrSg$WellID == procdat_gen$WellID[wellname] ),]$X405.A.A, ## CurrSg is a data.frame
y = CurrSg[which(CurrSg$WellID == procdat_gen$WellID[wellname] ),]$X405.B.A
),
place = "A2",
)
best wishes
yuanqiang
The text was updated successfully, but these errors were encountered: