Hi,
When you add a new layer to a plot and you provide new data, wouldn't it
make sense to provide aes() with some indication of the names of the
variables to use for coordinate plotting? You have provided a grouping
variable for the paths, but what of coordinates x and y? How could
geom_path()
Hello Chris, and thank you for your response.
I tried it both TRUE and FALSE given my confusion with the reference I found
that idea in.
It did not help either way.
Glad you noticed though, thank you.
WHP
William H. Poling Ph.D., MPH | Senior Data Scientist, Medicare Stars, CVS
Health
p
- Original Message -
> From: "Poling, William via R-help"
> To: "Ben Tupper"
> Cc: r-help@r-project.org
> Sent: Tuesday, 19 May, 2020 15:04:25
> Subject: Re: [R] Help with ggplot error: #Error in FUN(X[[i]], ...) : object
> 'x' not found
> Hello Ben and thank you for your response.
Hello Ben and thank you for your response.
I thought that was what I was doing when I ran this version:
Test1
p <- ggplot(c1members2, aes(x,y)) +
geom_point()
p + geom_line(data = paths, aes(group = trip_id),inherit.aes = FALSE) + #Error
in FUN(X[[i]], ...) : object 'x' not found
#RStudio Version Version 1.2.1335
sessionInfo()
# R version 4.0.0 Patched (2020-05-03 r78349)
#Platform: x86_64-w64-mingw32/x64 (64-bit)
#Running under: Windows 10 x64 (build 17763)
Good morning.
I am testing a small sample of my data using an example found here:
5 matches
Mail list logo