Description Usage Arguments Examples

View source: R/sig_dim_perm_scree.R

This function allows to test the significance of the CA dimensions by means of permutation of the input contingency table. Number of permutation set at 1000 by default, but can be increased by the user. The function return a scree-plot displaying for each dimension the observed eigenvalue and the 95th percentile of the permuted distribution of the corresponding eigenvalue. Observed eigenvalues that are larger than the corresponding 95th percentile are significant at least at alpha 0.05. P values are displayed into the chart.

1 | ```
sig.dim.perm.scree(data, B = 1000, cex = 0.7, pos = 4, offset = 0.5)
``` |

`data:` |
name of the contingency table (must be in dataframe format). |

`B:` |
number of permutations to be used (1000 by default). |

`cex:` |
controls the size of the labels reporting the p values; see the help documentation of the text() function by typing ?text. |

`pos:` |
controls the position of the labels reporting the p values; see the help documentation of the text() function by typing ?text. |

`offset:` |
controls the offset of the labels reporting the p values; see the help documentation of the text() function by typing ?text. |

1 2 | ```
data(greenacre_data)
sig.dim.perm.scree(greenacre_data, 10000)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.