1

I'm trying to plot a line chart of dt vs myvalue using Plotly in R. dt is a timestamp, and myvalue is an integer. However, I keep getting the error Error: C stack usage 15925408 is too close to the limit. In my test, I am only plotting 3 rows of the original dataframe which is basically nothing. So how can I fix this error?

library(plotly)

df = head(originalDf, 3)
dt = strptime(df$dt, "%Y-%m-%dT%H:%M:%OSZ")
myvalue = df$myvalue
plot_ly(df, x = dt, y = myvalue, type = 'scatter', mode = 'lines')
Simon Rex
  • 83
  • 7
  • Have you tried restarting R? It sounds like you may have overwritten a function that is causing an infinite recursive loop. It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input that can be used to test and verify possible solutions. – MrFlick Sep 07 '21 at 07:34

0 Answers0