[R] adding results to plot
petr@p|k@| @end|ng |rom prechez@@cz
Thu Sep 16 16:12:32 CEST 2021
I know I have seen the answer somewhere but I am not able to find it. Please
> res <- shapiro.test(rnorm(100))
Shapiro-Wilk normality test
W = 0.98861, p-value = 0.5544
I would like to add whole res object to the plot.
I can do it one by one
> text(locator(1), res$method)
> text(locator(1), as.character(res$p.value))
But it is quite inconvenient
I could find some way in ggplot world but not in plain plot world.
More information about the R-help