I'm trying to do a plot (from a vector) and coloring based on the values of one of the columns. This is the code that I have.
plot(x = FishVector$Diagonal.Length..cm.,
y = FishVector$Diagonal.Width..cm.,
main = "Relación entre largo del pez y el ancho",
xlab = "Largo del pez(cm)",
ylab = "Ancho del pez(cm)",
col = FishVector$Species,
pch = 20
)
I'm receiving this error msg:
Error in plot.xy(xy, type, ...) : invalid color name 'Bream'
Bream is one of the values for the column Species.