Entering edit mode
11.0 years ago
anin.gregory
▴
110
Hi I am trying to make a fitness landscape out of my data in R. I used a PCA plot to determine the location of each species in genotypic space and experimental data to determine the relative fitness of each species.
I have columns of x, y, and z. However, x, y, and z values cannot be formatted into increasing data ranges which is required for R's persp and wireframe to make surface plot.
I tried using akima, but the it does not come back with a landscape like I want. Any suggestions?
I want it to look like:
Your title is probably misleading, I think your question is about how to format your data for the plot to work, and it doesn't really matter that they come from "relative fitness" or whatever, correct? Could you please provide a reproducible code example and some data? Otherwise it is almost impossible to solve this.
I have a similar problem. I am trying to do a fitness landscape with the following data. Can i make a surface plot like the one shown in the figure?