I'm currently analyzing a dataset of GSR values. I first had to transform my unix values into readable data and then create a plot of the GSR values in function of time.
That is how the dataset looks like:
veranda <- ggplot(gsr_veranda, aes(as.POSIXct(Date, origin = "1970-01-01"), Values)) +
geom_line() +
scale_x_datetime(date_labels = "%H:%M:%s") +
I wanted to zoom into the graph and look at a specific time I tried this code:
veranda <- ggplot(gsr_veranda, aes(as.POSIXct(Date, origin = "1970-01-01"), Values)) +
geom_line() +
scale_x_datetime(date_labels = "%H:%M:%s") +
scale_x_continuous(limits = c("11:05:02", "11:05:03"))
However, I still get this error: Error in as.POSIXct.numeric(value) : 'origin' must be supplied
But the origin was already supplied when I transformed my unix into readable data and again in my ggplot code.
How can I fix this?