violin plots generated from data frame
The numbers in each column represent localisation of signal relative to another signal inside nuclei of cells. There are 3 treatment conditions and 7 time points of treatment + 2 controls giving a total of 23 columns (see violin plots).
I would like to perform a t-test or a Wilcox t-test with each column to each column. I think I have done it before with a pairwise.t.test(Chr)
. However, the function requires to define how you group your data and I would like to group mine by columns.
I've imported my data:
Chr <- read_csv("Chromocenters-intensity.csv",
+ na = "NA")
Parsed with column specification: cols( .default = col_double() )
And then tried:
pairwise.t.test(Chr, cols())
Error in order(y) : unimplemented type 'list' in 'orderVector1'
pairwise.wilcox.test(Chr,g=cols(Chr))
Error: Some
col_types
are not S3 collector objects: 1
I do not understand what the errors mean.
a normal t.test works fine:
t.test(Chr$S0,Chr$S1)
Welch Two Sample t-test
data: Chr$S0 and Chr$S1 t = 0.85955, df = 154.12, p-value = 0.3914 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: -1.920629 4.879370 sample estimates: mean of x mean of y 100.41579 98.93642
but how do I scale it up to include every column by every column?
Thank you