plotly / orca

Command line application for generating static images of interactive plotly charts
MIT License
293 stars 40 forks source link

Orca function not working (in R) #306

Closed dplazas closed 4 years ago

dplazas commented 4 years ago

Hi, I installed Orca via Nodejs and when running "$ /Users/danplaza/.npm-global/bin/orca" , got:

Usage: orca [--version] [--help] []

Available commands:

/Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca

Finally, when tried to plot by " > orca(fig, file = "plot.pdf")" got this:

"Error: The orca command-line utility is required for this functionality." Any ideas on how to solve it? thanks

antoinerg commented 4 years ago

@rpkyle are you aware of any problems with Orca in R?

dplazas commented 4 years ago

I restarted both R and computer and nothing worked.... re did all over again, and got same

antoinerg commented 4 years ago

@dplazas considering that Orca runs fine from the command-line, it does not seem like Orca itself has any problem. You should probably open an issue on the Plotly for R repo at https://github.com/ropensci/plotly

The logic responsible for calling Orca is in this file: https://github.com/ropensci/plotly/blob/2368c0c05a161db37b3e0afed7a4b81430bd7832/R/orca.R

rpkyle commented 4 years ago

@rpkyle are you aware of any problems with Orca in R?

I haven't had issues when running the plotly visual baseline tests in the past, but it does look like it's running an older version of orca -- maybe something has changed within the R package since then? I think the server is installed in the Dockerfile here:

https://github.com/ropensci/plotly/blob/master/inst/docker/Dockerfile.vtest

I second @antoinerg's suggestion about opening the issue to continue discussion, since this is likely unrelated to orca.

dplazas commented 4 years ago

Hi, thank you guys for helping out! sadly I cant keep trying orca , spent too much time on it... could you please help me with this issue? I am back to ggplot and need to quickly "translate" what I did in plotly.

I have a dataset where "strain" column has data of "w" and "mut1", and made a plot firstly only with "w" (in "g"), then I added the "mut1" to the plot by using "g <- g %>% add_trace("

Q: what is the equivalent way to do exactly the same (add the "mut1" to graph containing "w") with ggplot? thanks!

g <- plot_ly(data = data[which(data$strain == 'w'),], x = ~time, y = ~length, type = 'scatter', mode = 'lines+markers', name = 'WT', marker = list(color = 'rgba(169, 169, 169, 0.3)', size = 8, line = list(color = 'rgb(169, 169, 169)',

                  width = 0.3)),
         line = list(color = 'rgb(169, 169, 169)',
                     width = 1.4, dash = 'dash'),
         error_y = ~list(array = sd,
                         color = 'w', thickness = 1.3, width = 3))

g #Shows the "w" column

g <- g %>% add_trace(data = data[which(data$strain == 'mut1'),], name = 'rsmB', marker = list(color = 'rgba(255,166,0, 0.3)'), line = list(color = 'rgb(255,166,0)', width = 1.4, dash = 'dash'), error_y = ~list(array = sd, color = 'mut1', thickness = 1.3, width = 3)) g

El sáb., 4 abr. 2020 a las 17:58, Ryan Patrick Kyle (< notifications@github.com>) escribió:

@rpkyle https://github.com/rpkyle are you aware of any problems with Orca in R?

I haven't had issues when running the plotly visual baseline tests in the past, but it does look like it's running an older version of orca -- maybe something has changed within the R package since then? I think the server is installed in the Dockerfile here:

https://github.com/ropensci/plotly/blob/master/inst/docker/Dockerfile.vtest

I second @antoinerg https://github.com/antoinerg's suggestion about opening the issue to continue discussion, since this is likely unrelated to orca.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/plotly/orca/issues/306#issuecomment-609088285, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZH362FJUTH5VASJAEWFNLRK6NQZANCNFSM4L4HTD2Q .

-- ≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈ Daniel Plaza Sáez +569 98762026

antoinerg commented 4 years ago

I second @antoinerg's suggestion about opening the issue to continue discussion, since this is likely unrelated to orca.

I will close the current issue since it's more relevant to Plotly R rather than Orca itself. Sorry for your trouble @dplazas