I have two variables that I want to plot. One is Abundance (y axis), and the other is Northing. I have created a spatial points data frame, converting Northing into Latitude (x axis).
Usually this would be fine for me to plot, however, I want to remove the zeros from and log my Abundance variable (y axis). How could I do this without getting an error like "variable lengths different"?
plot(SP_df$Latitude, df$Abundance)
abline(lm(df$Abundance ~ SP_df$Latitude))