Skip to content
Prev 383967 / 398502 Next

Help with ggplot error: #Error in FUN(X[[i]], ...) : object 'x' not found

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() know that your lon/lat variables are to be used as x and y
coordinates in the plot?

Cheers,
Ben



On Tue, May 19, 2020 at 8:29 AM Poling, William via R-help <
r-help at r-project.org> wrote:

            

  
    
Message-ID: <CALrbzg1bPZGtUK9BYAZUWQB3pFE_C-783xmDR=Zf7AfgFaVROQ-4928@mail.gmail.com>
In-Reply-To: <BYAPR06MB53835FCA0A4E629E6C4048EAAEB90@BYAPR06MB5383.namprd06.prod.outlook.com>