I'm trying to plot an scatter plot in R:
plot(cars$Hwy.MPG ~ cars$HP ,col=cars$Cyl , data=cars, pch=8)
and get an error:
Error in plot.xy(xy, type, ...) :
numerical color values must be >= 0, found -1
Cause I have values of '-1' in the column 'Cyl' . But I need those records too , and can't drop them.. how could I plot it with negative numbers too? Thanks