I am using Plotly package on RStudio. I try to use the function windows() that pops up a new window where the plot should be inserted. This function works well with the normal R function plot, ggplot... but it is not working with plotly graphs.
Here is my code:
windows()
p <- as.doubleplot_ly(data = prices_st, y = prices_st$values, group = prices_st$ind) %>%
layout(showlegend = FALSE)
And the error message is
Error: (list) object cannot be coerced to type 'double'