I'm running the function
ggplot(datfr, aes(x = dat1[1:951,], y = dat2[1:951,])) +
geom_point()
and getting the error
Don't know how to automatically pick scale for object of type data.frame.
Defaulting to continuous.
Don't know how to automatically pick scale for object of type data.frame. Defaulting to continuous.
Error: Aesthetics must be either length 1 or the same as the data (951): x, y
The last error I thought only came up when the x and y values of data were different sizes, but setting the filters [1:951,] should fix that, and when I use nrow on the two datasets it returns the same number of rows. What's happening here?