Añadida explicación de coeficiente de correlación.

This commit is contained in:
Costa
2022-02-08 12:55:01 +01:00
parent 171df0f3a9
commit 69d5674814
+7 -1
View File
@@ -123,8 +123,14 @@ By default, ggcorrplot converts the p-value into *star* significance equivalence
ggcorrplot(df, var = "Cyt", value = "Value", color = "white", stat="pval") ggcorrplot(df, var = "Cyt", value = "Value", color = "white", stat="pval")
``` ```
ggcorrplot uses "pearson" by default to obtain a correlation coeficient, although "spearman" is also available.
```{r, fig.width=5, fig.height=4}
ggcorrplot(df, var = "Cyt", value = "Value", color = "white", stat="pval", method="spearman")
```
Finally, you can show only the upper part or the lower part of the specular matrix. Finally, you can show only the upper part or the lower part of the specular matrix.
```{r, fig.width=5, fig.height=4} ```{r, fig.width=5, fig.height=4}
ggcorrplot(df, var = "Cyt", value = "Value", color = "black", tri="lower") ggcorrplot(df, var = "Cyt", value = "Value", color = "black", tri="lower")
```