Question: I am trying to make a spatial plot on R Studio from an excel file. I get this error message : Error: Aesthetics must be
I am trying to make a spatial plot on R Studio from an excel file. I get this error message :
Error: Aesthetics must be either length 1 or the same as the data (76): x, y, size, colour
Here is the code I am using :
input<-read.csv('seq-7_ws.csv')
library(ggplot2)
ggplot(data = input, aes(x=input$X1, y=input$X11.672, size=input$X11.672, color=input$X11.672)) +
geom_point() + scale_size_continuous(range = c(3, 8))
Why am I getting the error and what is the correct code to fix it?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
