I am running in a very weird problem. We use a server to process the data, so there are two different behaviours being analysed. The filtered csv from one behavior loaod normally and can all be plotted. However, the same type of csv files but created with a different training module will be read and processed but I try to run the same plotting code it gives me a massive error:
Error in `geom_path()` at AnnaElisabete/Downloads/DLCAnalyzer_Functions_final.R:1253:5:! Problem while computing aesthetics.ℹ Error occurred in the 1st layer.Caused by error:! object 'x' not found
Backtrace:
1. global PlotPointData(Tracking, points = c("Body 2", "Tail"))
2. cowplot::draw_plot(...)
at AnnaElisabete/Downloads/DLCAnalyzer_Functions_final.R:1253:5 4. cowplot:::as_grob.ggplot(plot)
5. ggplot2::ggplotGrob(plot)
...
18. ggplot2 (local) f(l = layers[[i]], d = data[[i]])
19. l$compute_aesthetics(d, plot)
20. ggplot2 (local) compute_aesthetics(..., self = self)
21. base::lapply(aesthetics, eval_tidy, data = data, env = env)
22. rlang (local) FUN(X[[i]], ...)
Error in geom_path() :
ℹ Error occurred in the 1st layer.Caused by error:! object 'x' not found
29. | stop(fallback)
-- | --
What is happening and why is one dataset able to be plotted without a problem, and the other gives me an error as it is unable to read the object 'x'. I checked and the tracking data is being processes just fine. So it does not make much sense to me.
Hi,
I am running in a very weird problem. We use a server to process the data, so there are two different behaviours being analysed. The filtered csv from one behavior loaod normally and can all be plotted. However, the same type of csv files but created with a different training module will be read and processed but I try to run the same plotting code it gives me a massive error: