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
track <- gos$Track(data, height = 100)$mark_area()$encode(
x = gos$X("position:G"),
y = gos$Y("peak:Q"),
color= gos$value('blue')
)
track$view()`
If I take the output of track$view() and copy and paste it in a html, then when I open the html I can see the visualization and everything works.
However, I wanted to ask if there was a way, like some commands, to directly save the html output in an html file instead of having to copy and paste. Thank you.
The text was updated successfully, but these errors were encountered:
I want to piggyback off this issue. My question was how difficult it would be to be able to wrap Gos(ling) visualization outputs in a htmlwidget such that these visualizations would be easy to display in a Rmarkdown/Quarto document. If html code is the native output then in theory we could just embed it in a self-contained html quarto doc, but that doesn't work my testing ; it would be far easier for the outputs to produce a htmlwidget.
Hi, I'm currently using Gosling in R and the following is my actual code:
`library(gosling)
data <- gos$bigwig(
url = "https://s3.amazonaws.com/gosling-lang.org/data/ExcitatoryNeurons-insertions_bin100_RIPnorm.bw",
column = "position",
value = "peak"
)
track <- gos$Track(data, height = 100)$mark_area()$encode(
x = gos$X("position:G"),
y = gos$Y("peak:Q"),
color= gos$value('blue')
)
track$view()`
If I take the output of track$view() and copy and paste it in a html, then when I open the html I can see the visualization and everything works.
However, I wanted to ask if there was a way, like some commands, to directly save the html output in an html file instead of having to copy and paste. Thank you.
The text was updated successfully, but these errors were encountered: