I'm using the correct longitude_coordinate, but I keep getting error when KNITTING ONLY? why???
``{r}
Initial plot with latitude and longitude
ggplot(coyotes_clean, aes(x =longitude_coordinate, y = latitude_coordinate)) +
geom_point() + labs(title = "Coyote Complaints by Location", x = "Longitude", y = "Latitude")
keep getting error:
processing file: HW4.Rmd
|............... | 30% [unnamed-chunk-4]
Quitting from lines 98-103 [unnamed-chunk-4] (HW4.Rmd)
Error in geom_point()
:
! Problem while computing aesthetics.
Error occurred in the 1st layer.
Caused by error:
! object 'longitude_coordinate' not found
Backtrace:
- rmarkdown::render("/stor/home/sc56/HW4.Rmd", encoding = "UTF-8")
- knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
- knitr:::process_file(text, output)
- knitr:::process_group.block(group)
- knitr:::call_block(x)
... - l$compute_aesthetics(d, plot)
- ggplot2 (local) compute_aesthetics(..., self = self)
- ggplot2:::scales_add_defaults(...)
- base::lapply(aesthetics[new_aesthetics], eval_tidy, data = data)
- rlang (local) FUN(X[[i]], ...)
Execution halted