error bars on correlation Figure
3
0
Entering edit mode
7.1 years ago
kanwarjag ★ 1.2k

I have a figure of correlation as shown @ https://drive.google.com/file/d/0B8-ZAuZe8jldQnEzcThkOXlkNWc/edit However reviewer has asked to add error bars. I browsed around and could not find a method by which we can plot error bars on line graph. It is a correlation of two numerical values and we cannot show SE of one sample.

Any suggestion please.

Thanks

statstical SE • 3.1k views
ADD COMMENT
0
Entering edit mode

You mean you want x and y error bars?

ADD REPLY
0
Entering edit mode

yes I think it come from replicates SE

ADD REPLY
1
Entering edit mode
7.1 years ago

If you have time to learn a little bit of R programming language you can use ggplot2 library to add confidence interval to your scatter plot. Here is an example showing correlation of horse power with miles per gallon

library(ggplot2) 

ggplot(mtcars, aes(x=hp, y=mpg)) + 
  geom_point() + 
  geom_smooth(method="lm") + 
  theme_classic()
ADD COMMENT
0
Entering edit mode

Thanks for the information. I have one clarification Let us say gene A has three values in RT PCR - 10, 20, 22 while gene expression has three value 2,3, 5, so we when we calculate CI we will take all 6 values of RTPCR and GE into consideration?

ADD REPLY
0
Entering edit mode

Good question. I don't think I am capable of answering it though. Check this response on stackexchange for answer: http://stats.stackexchange.com/questions/101318/understanding-shape-and-calculation-of-confidence-bands-in-linear-regression

ADD REPLY
0
Entering edit mode
7.1 years ago
theobroma22 ★ 1.2k

Are you positive the reviewer means to add error bars to the correlation plot? I think he means to add error bars to the qPCR bar plot on the right since these measurements are done in triplicates and you have error. Also, you should present the validation plot as qPCR as a bar plot with error bars and the RNA-seq as a line plot, or vice versa. This can be easily done in excel which you used already. This being said, I'm assuming you do not have replicates for the RNA-seq analysis. Hope this helps.

ADD COMMENT
1
Entering edit mode

you should present the validation plot as qPCR as a bar plot with error bars

More appropriate would be a violin plot or boxplot.

ADD REPLY
0
Entering edit mode

The graph is on left side @ https://drive.google.com/file/d/0B8-ZAuZe8jldQnEzcThkOXlkNWc/edit and this is where reviewer is asking to add error bars. I do have replicates (3) in RNAseq. So this brings my concern how to collapse RNAseq (3 readings) and QPCR (3 readings) corresponding to each point on graph either for SE or for CI

Thanks

ADD REPLY
0
Entering edit mode
7.1 years ago
theobroma22 ★ 1.2k

As mentioned above you want x and y error bars, which corresponds to the fold-change expression on that axis. So, the x direction error bars correspond to the rna-seq values and y direction to the qPCR values. So there is no need to collapse anything. This is quite simple to do. See the error bar tab/section for the plot in excel. You can even highlight the cells that have the error values to use for each point and its direction.

ADD COMMENT

Login before adding your answer.

Traffic: 1505 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6