Hello, I have a table of betavalues for the cpgs of one gene for the different conditions(columns) and I want to plot those values as a line with uncertainty range. (x would be the 5 conditions, and y the betavalues for each condition) The thing is, I don't know how to handle this structure to plot it, neither how to plot it.
> table_BS
X X01PM0471C_BS X01PM0471T_BS X06PM1188C_BS X06PM1188T_BS X07PM1349C_BS
1300 0.88647 0.8786 0.89372 0.90263 0.90162
1301 0.78965 0.87323 0.80041 0.83332 0.7667
1302 0.87391 0.87248 0.85595 0.83394 0.91689
1303 0.91277 0.88628 0.94335 0.91428 0.93645
1304 0.91465 0.907 0.91991 0.89802 0.91308
1305 0.69227 0.72461 0.81498 0.70621 0.79752
1306 0.88589 0.89261 0.89747 0.88588 0.89203
1307 0.77612 0.79795 0.80669 0.81899 0.83879
1308 0.7598 0.78125 0.78424 0.7711 0.68918
1309 0.86144 0.83854 0.85294 0.83879 0.88717
Can you help me? I'd like something like this: https://goo.gl/images/y8TYJU
facet them with geom_smooth().
with OP data: without facet:
with facet: test=read.csv("test.txt", sep="\t", header = T, strip.white = T, stringsAsFactors = F) library(tidyr) gtest=gather(test,"condition","expn", -X) library(ggplot2) names(gtest)