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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!