Make A Fitness Landscape
0
0
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:enter image description here

• 5.6k views
ADD COMMENT
1
Entering edit mode

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.

ADD REPLY
0
Entering edit mode

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?

 x<- c(0,20,40,60,80,100)
 y<- c(1,1,1,1,1,1)
 z<- c(0,.7,.4,.1,.2,.1)
ADD REPLY

Login before adding your answer.

Traffic: 1574 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6