Skip to content

Issue when plotting the data, says object "x"not found #24

@Annabete

Description

@Annabete

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:

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]], ...)
Show Traceback
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions