I am just starting programming in R. Please help me for this solution to give me an idea.
I want to explore a relationship between distribution of a type of species and elevation to visualize the relation on a graph.
when I plotted the distribution of the species using lat and long information, it looks like scattered points. Now I want to attach elevation data to these points and classify its value with different color on a graph (if the value is 1000-2000, it is red etc.
I just used the following code to make a graph of distribution of the species. plot(species$lon, species$lat)
What I want is add elevation data to the graph where species distributions have been plotted and classify the values of elevation into 5 classes.