SimDimor {FlowerMate} | R Documentation |
Simulate data of heterostylous individuals
Description
Produces simulated datasets of heterostylous individuals with as many rows as number of sexual organs defined.
Usage
SimDimor(NIDL=30, NIDS=30,Nst=1,Nan=1,Norg.st=1,Norg.an=1,
LSTmeanX=20, LSTsdX=0.5, LANmeanX=8,LANsdX=0.5,
SSTmeanX=8, SSTsdX=0.5, SANmeanX=20, SANsdX=0.5,
LSTmeanY=20, LSTsdY=0.5, LANmeanY=8 ,LANsdY=0.5,
SSTmeanY=8, SSTsdY=0.5, SANmeanY=20, SANsdY=0.5,
LSTmeanZ=20, LSTsdZ=0.5, LANmeanZ=8 ,LANsdZ=0.5,
SSTmeanZ=8, SSTsdZ=0.5, SANmeanZ=20, SANsdZ=0.5, pop_code="test1")
Arguments
NIDL |
Number of large-morph individuals to be simulated |
NIDS |
Number of short-morph individuals to be simulated |
Nst |
Number of stigma levels per individual |
Nan |
Number of anther levels per individual |
Norg.st |
Number of stigmas per level in every individual |
Norg.an |
Number of anthers per level in every individual |
LSTmeanX |
Mean value of the simulated long stigmas in the X axis |
LSTsdX |
Standard deviation of the simulated long stigmas in the X axis |
LANmeanX |
Mean value of the simulated long anthers in the X axis |
LANsdX |
Standard deviation of the simulated long anthers in the X axis |
SSTmeanX |
Mean value of the simulated short stigmas in the X axis |
SSTsdX |
Standard deviation of the simulated shor stigmas in the X axis |
SANmeanX |
Mean value of the simulated short anthers in the X axis |
SANsdX |
Standard deviation of the simulated short anthers in the X axis |
LSTmeanY |
Mean value of the simulated long stigmas in the Y axis |
LSTsdY |
Standard deviation of the simulated long stigmas in the Y axis |
LANmeanY |
Mean value of the simulated long anthers in the Y axis |
LANsdY |
Standard deviation of the simulated long anthers in the Y axis |
SSTmeanY |
Mean value of the simulated short stigmas in the Y axis |
SSTsdY |
Standard deviation of the simulated shor stigmas in the Y axis |
SANmeanY |
Mean value of the simulated short anthers in the Y axis |
SANsdY |
Standard deviation of the simulated short anthers in the Y axis |
LSTmeanZ |
Mean value of the simulated long stigmas in the Z axis |
LSTsdZ |
Standard deviation of the simulated long stigmas in the Z axis |
LANmeanZ |
Mean value of the simulated long anthers in the Z axis |
LANsdZ |
Standard deviation of the simulated long anthers in the Z axis |
SSTmeanZ |
Mean value of the simulated short stigmas in the Z axis |
SSTsdZ |
Standard deviation of the simulated shor stigmas in the Z axis |
SANmeanZ |
Mean value of the simulated short anthers in the Z axis |
SANsdZ |
Standard deviation of the simulated short anthers in the Z axis |
pop_code |
A string, the population code of the simulated data |
Details
Values for sexual organs are randomly taken from a normal distribution with the defined mean and standard deviation.
Value
A data frame with NID x Nst x Nan rows (one per simulated sexual organ) and 8 columns (containing population code, morph, individual ID, sexual organ ID, sexual organ type, and coordinates x, y and z).
Author(s)
A. J. Muñoz-Pajares and V. I. Simón-Porcar
Examples
## Getting a tiny dataset
SimDimor(NIDL=2,NIDS=2)
## Getting a largest dataset and performing the analysis
sim.data<-SimDimor(NIDL=30,NIDS=30)
inaccuracy(sim.data)