Correlation in R | Pearson correlation coefficients with significance** , p-values and Heat map|
HTML-код
- Опубликовано: 7 авг 2024
- This video shows the easiest way of calculating Pearson correlation coefficients as fast as possible only with two important lines of executable code which directly gives the heatmap containing coefficients along with asterisks indicating significance at different levels.
00:00 - Introduction
00:38 - Coding
Hey, use adjusted means for genotypic correlations and original data for phenotypic correlations.
Adjusted means means?
I have absolutely zero coding experience previously and was really struggling with this, This video is FANTASTIC thanks a million!!
Yes, thanks million times for simple and clear explanation.It saved me so much time doing my project.Many thanks
Very useful and thank you so much sir... expecting more videos from you.
What it takes a whole chunk of code and bunch of adjustments in Tableau only takes two lines in R. And I tried the code. It worked perfectly. Thank you dude!
Thankyou very much. Was searching for this. You made it simple and informative.
thank you, continue with others
Thank you!
excellent class!
can you provide the script?
Do we use the average of replications for correlation or should we use the replicated data for correlation
Using replications is better, the results will be similar to that of average, but not identical.
thanks
Welcome
Sir, how can we can analyse the data for Phenotypic correlation with Replicated data and how to draw heat map for Phenotypic correlation?
Please suggest me sir.
Nothing is going to change, just use the data as it is with the replication and follow the steps shown in the video.
Thanks for the video. Is there any way to change the color of the heat map, say from blue to green?
? corr_plot
Ask for the help in r studio using above command after you load metan,
you will find all the variables you can control
Thank you for your lecture. How to use spearman correlation in R as my data are non-normally distributed. My other question is, do I have to log transform my data before doing the correlation analysis?
Yup you can use cor() function in base R to calculate Spearman correlation
corr(X-variable, Y-variable, method=("spearman"))
@@Guruprasad_A I cannot plot the spearman correlation using this heat map. Can u show the code?
would you share r code with spearman
Yup you can use cor() function in base R to calculate Spearman correlation
corr(X-variable, Y-variable, method=("spearman"))
I have one question. If I use 'metan' package for correlation analysis, after correlation analysis what should I say? is it person or spearman correlation?
It's Pearson correlation, what i have shown in the video.
Please also show us the spearman correlation analysis and heatmap graphs. Thanks
Sure.
How to perform correlation network plots in R
how can we make the parameter "yield" in last column instead of middle in the plot?
Unfortunately we can't customize that in metan.
If i have a very large data with lots of variables. Can I just choose two variables with the variables codes?
yup
check the second example by asking the help in r studio.
?corr_coef
can we use this correlation for one location agro-morphological data?
Yes, you can use correlation to study the association between them.
Sir, is there any way for obtaining Heatmap for Genotypic and phenotypic correlations from a replicated data, separately?
You can use ggplot2
ruclips.net/video/BOuEAA1SDmM/видео.html
For the data with control is irrigated and treatment (drought or any other treatment), how can we do correlation analysis in R?
you can do the correlation between among traits within a particular group (control and treatment) and also between the particular trait between different groups ( irrigated yield and drought yield ) etc......
just follow the same steps as shown in the video
Hi, can we plot summary statistics and correlation plot in single diagram.? thanx
You can do that in ggplot by taking the output values.
Dear Mr. I'm in need of your support, I have a sort of data. so would you help me by analysing the correlation between variables by using R software is is because I'm getting a difficulty to understand it well.
Had you conneted to sir??!
How to do correlation and path analysis without replication in agumented design by R software
By taking the average values only you need to correlate.
How can we prepare data for the parameters of two different species?
In same fashion only.
I want to change the font and number size of the corr plot, can you plz tell me the code?
Ask for the help in r studio by typing
?corr_plot
after loading metan package.
You will get to know about the code there itself.
I was wondering, when I print(corrl) I only seem to get the p-values and not the Pearson coefficients, how do I fix that?
corrl$cor
use the above code to find Pearson correlation coefficients
How to calculate genotypic and phenotypic correlation with mean values
You can do it using metan.
How can i change the color and method to circular?
?corr_plot
Ask for the help, you will get all the customisation that you can do.
or you can check this video
ruclips.net/video/1e3PhugevPM/видео.html
Why my color bar is reversed and how to correct it? Thanks.
?plot
I received this even i install the package
Error: package or namespace load failed for ‘metan’ in loadNamespace(j
Install munsell package manually
@@Guruprasad_A Thank you so much the video. is helpful.
Hey, how can I change the color of the plot?
Use help in the console by typing for more info.
?plot.corr_coef
And in the function plot.corr_coef modify the below arguments.
col.low = "red",
col.mid = "white",
col.high = "blue",
@@Guruprasad_A Thank you!
I wanted data
Anyone..do you have email ID of Sir, please share