Produces simulated datasets of heterostylous (trimorphic) individuals with as many rows as number of sex organs defined. One stigmas and two anthers are simulated per individual.
SimTrimor(NIDL=30,NIDM=30,NIDS=30,
LUPmeanX=0, LUPsdX=1, LBWmeanX=0, LBWsdX=1, LLWmeanX=0, LLWsdX=1,
MUPmeanX=0, MUPsdX=1, MBWmeanX=0, MBWsdX=1, MLWmeanX=0, MLWsdX=1,
SUPmeanX=0, SUPsdX=1, SBWmeanX=0, SBWsdX=1, SLWmeanX=0, SLWsdX=1,LUPmeanY=0, LUPsdY=1, LBWmeanY=0, LBWsdY=1, LLWmeanY=0, LLWsdY=1,
MUPmeanY=0, MUPsdY=1, MBWmeanY=0, MBWsdY=1, MLWmeanY=0, MLWsdY=1,
SUPmeanY=0, SUPsdY=1, SBWmeanY=0, SBWsdY=1, SLWmeanY=0, SLWsdY=1,
LUPmeanZ=0, LUPsdZ=1, LBWmeanZ=0, LBWsdZ=1, LLWmeanZ=0, LLWsdZ=1,
MUPmeanZ=0, MUPsdZ=1, MBWmeanZ=0, MBWsdZ=1, MLWmeanZ=0, MLWsdZ=1,
SUPmeanZ=0, SUPsdZ=1, SBWmeanZ=0, SBWsdZ=1, SLWmeanZ=0, SLWsdZ=1,
pop_code="test1")
A data frame with NID x Nst x Nan rows (one per simulated sex organ) and 8 columns (containing population code, morph, individual ID, sex organ ID, sex organ type, and coordinates x, y and z).
Number of large-morph individuals to be simulated
Number of medium-morph individuals to be simulated
Number of short-morph individuals to be simulated
Mean value of the simulated long morph for stigmas in the UP level (X axis).
Standard deviation of the simulated long morph for stigmas in the UP level (X axis).
Mean value of the simulated long morph for stigmas in the BETWEEN level (X axis).
Standard deviation of the simulated long morph for stigmas in the BETWEEN level (X axis).
Mean value of the simulated long morph for stigmas in the low (LW) level (X axis).
Standard deviation of the simulated long morph for stigmas in the low (LW) level (X axis).
Mean value of the simulated medium morph for stigmas in the UP level (X axis).
Standard deviation of the simulated medium morph for stigmas in the UP level (X axis).
Mean value of the simulated medium morph for stigmas in the BETWEEN level (X axis).
Standard deviation of the simulated medium morph for stigmas in the BETWEEN level (X axis).
Mean value of the simulated medium morph for stigmas in the low (LW) level (X axis).
Standard deviation of the simulated medium morph for stigmas in the low (LW) level (X axis).
Mean value of the simulated short morph for stigmas in the UP level (X axis).
Standard deviation of the simulated short morph for stigmas in the UP level (X axis).
Mean value of the simulated short morph for stigmas in the BETWEEN level (X axis).
Standard deviation of the simulated short morph for stigmas in the BETWEEN level (X axis).
Mean value of the simulated short morph for stigmas in the low (LOW) level (X axis).
Standard deviation of the simulated short morph for stigmas in the low (LOW) level (X axis).
Mean value of the simulated long morph for stigmas in the UP level (Y axis).
Standard deviation of the simulated long morph for stigmas in the UP level (Y axis).
Mean value of the simulated long morph for stigmas in the BETWEEN level (Y axis).
Standard deviation of the simulated long morph for stigmas in the BETWEEN level (Y axis).
Mean value of the simulated long morph for stigmas in the low (LW) level (Y axis).
Standard deviation of the simulated long morph for stigmas in the low (LW) level (Y axis).
Mean value of the simulated medium morph for stigmas in the UP level (Y axis).
Standard deviation of the simulated medium morph for stigmas in the UP level (Y axis).
Mean value of the simulated medium morph for stigmas in the BETWEEN level (Y axis)
Standard deviation of the simulated medium morph for stigmas in the BETWEEN level (Y axis).
Mean value of the simulated medium morph for stigmas in the low (LW) level (Y axis).
Standard deviation of the simulated medium morph for stigmas in the low (LW) level (Y axis).
Mean value of the simulated short morph for stigmas in the UP level (Y axis).
Standard deviation of the simulated short morph for stigmas in the UP level (Y axis).
Mean value of the simulated short morph for stigmas in the BETWEEN level (Y axis).
Standard deviation of the simulated short morph for stigmas in the BETWEEN level (Y axis).
Mean value of the simulated short morph for stigmas in the low (LOW) level (Y axis).
Standard deviation of the simulated short morph for stigmas in the low (LOW) level (Y axis).
Mean value of the simulated long morph for stigmas in the UP level (Z axis).
Standard deviation of the simulated long morph for stigmas in the UP level (Z axis).
Mean value of the simulated long morph for stigmas in the BETWEEN level (Z axis).
Standard deviation of the simulated long morph for stigmas in the BETWEEN level (Z axis).
Mean value of the simulated long morph for stigmas in the low (LW) level (Z axis).
Standard deviation of the simulated long morph for stigmas in the low (LW) level (Z axis).
Mean value of the simulated medium morph for stigmas in the UP level (Z axis).
Standard deviation of the simulated medium morph for stigmas in the UP level (Z axis).
Mean value of the simulated medium morph for stigmas in the BETWEEN level (Z axis).
Standard deviation of the simulated medium morph for stigmas in the BETWEEN level (Z axis).
Mean value of the simulated medium morph for stigmas in the low (LW) level (Z axis).
Standard deviation of the simulated medium morph for stigmas in the low (LW) level (Z axis).
Mean value of the simulated short morph for stigmas in the UP level (Z axis).
Standard deviation of the simulated short morph for stigmas in the UP level (Z axis).
Mean value of the simulated short morph for stigmas in the BETWEEN level (Z axis).
Standard deviation of the simulated short morph for stigmas in the BETWEEN level (Z axis).
Mean value of the simulated short morph for stigmas in the low (LOW) level (Z axis).
Standard deviation of the simulated short morph for stigmas in the low (LOW) level (Z axis).
A string, the population code of the simulated data
A. J. Muñoz-Pajares and V. I. Simón-Porcar,
Values for sex organs are randomly taken from normal distributions with the defined mean and standard deviation.
## Getting a tiny dataset
SimTrimor(2,2,2)
## Getting a largest dataset and performing the analysis
sim.data.tri<-SimTrimor(20,20,20)
inaccuracy(sim.data.tri)
Run the code above in your browser using DataLab