Adjuts number of digits for small pvalue to be displayed in title of a plot using renderPlot in Shiny in R

In R one can use options(digits=n) to adjust the number of digits in the output value. However, this does not work in Shiny, and sprintf() does not work with very low numbers either since it would only display zeros. So, how could i obtain in Shiny something like options(digits = 4) p.val$p.value [1] 3.724e-23 So… Read More Adjuts number of digits for small pvalue to be displayed in title of a plot using renderPlot in Shiny in R

How to extract lower and upper bounds from confidence level in R from t test function?

I used the following code to retrieve a confidence level for my data: c <- t.test(my_data$my_col, conf.level = 0.95) c This returns something like: data: my_data$my_column t = 30, df = 20, p-value < 2.1e-14 alternative hypothesis: true mean is not equal to 0 95 percent confidence interval: 62.23191 80.11201 sample estimates: mean of x… Read More How to extract lower and upper bounds from confidence level in R from t test function?

Label subset of data points in QQ plot

I’m trying to generate a QQ plot where I would like to label the respective points. This is my data subset dput(head(C_A,10)) structure(list(CONTROL_ASYMPTOMATIC = structure(c(3L, 4L, 1L, 53L, 5L, 11L, 35L, 31L, 20L, 45L), .Label = c("Acidocella.facilis", "Cellulosimicrobium.cellulans", "Citrobacter.freundii", "Citrobacter.koseri", "Gallibacterium.anatis", "Mycobacterium.asiaticum", "Mycobacterium.avium", "Mycobacterium.cookii", "Mycobacterium.gastri", "Mycobacterium.gordonae", "Mycobacterium.hyorhinis", "Mycobacterium.intracellulare", "Mycobacterium.kansasii", "Mycobacterium.leprae", "Mycobacterium.malmoense", "Mycobacterium.marinum", "Mycobacterium.scrofulaceum", "Mycobacterium.simiae", "Mycobacterium.sp.",… Read More Label subset of data points in QQ plot