Correlation in R | Pearson correlation coefficients with significance** , p-values and Heat map|

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 68

  • @Guruprasad_A
    @Guruprasad_A  3 ปีที่แล้ว +4

    Hey, use adjusted means for genotypic correlations and original data for phenotypic correlations.

    • @umagenetics3975
      @umagenetics3975 7 หลายเดือนก่อน

      Adjusted means means?

  • @nansophiahan1391
    @nansophiahan1391 2 ปีที่แล้ว +4

    I have absolutely zero coding experience previously and was really struggling with this, This video is FANTASTIC thanks a million!!

  • @favouritethings9363
    @favouritethings9363 2 ปีที่แล้ว +1

    Yes, thanks million times for simple and clear explanation.It saved me so much time doing my project.Many thanks

  • @ericzheng4815
    @ericzheng4815 2 ปีที่แล้ว +2

    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!

  • @deepikachandrasekaran3554
    @deepikachandrasekaran3554 3 ปีที่แล้ว +1

    Very useful and thank you so much sir... expecting more videos from you.

  • @kariiamba7324
    @kariiamba7324 ปีที่แล้ว

    Thankyou very much. Was searching for this. You made it simple and informative.

  • @Yabuwelde
    @Yabuwelde 3 ปีที่แล้ว +2

    thank you, continue with others

  • @antonreinhold8478
    @antonreinhold8478 2 ปีที่แล้ว +1

    Thank you!

  • @mebratuify
    @mebratuify ปีที่แล้ว

    Please also show us the spearman correlation analysis and heatmap graphs. Thanks

  • @rahayupertiwi4299
    @rahayupertiwi4299 3 ปีที่แล้ว +1

    thanks

  • @pabolutejasree6359
    @pabolutejasree6359 7 หลายเดือนก่อน

    How to perform correlation network plots in R

  • @monzurmorshed.
    @monzurmorshed. 2 ปีที่แล้ว

    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?

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      Yup you can use cor() function in base R to calculate Spearman correlation
      corr(X-variable, Y-variable, method=("spearman"))

    • @samihahzura4735
      @samihahzura4735 2 ปีที่แล้ว

      @@Guruprasad_A I cannot plot the spearman correlation using this heat map. Can u show the code?

    • @user-rt9tq6mz2k
      @user-rt9tq6mz2k 2 ปีที่แล้ว

      would you share r code with spearman

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      Yup you can use cor() function in base R to calculate Spearman correlation
      corr(X-variable, Y-variable, method=("spearman"))

  • @adityapratapsingh6068
    @adityapratapsingh6068 2 ปีที่แล้ว

    Sir, is there any way for obtaining Heatmap for Genotypic and phenotypic correlations from a replicated data, separately?

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      You can use ggplot2

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      th-cam.com/video/BOuEAA1SDmM/w-d-xo.html

  • @endrishussen5495
    @endrishussen5495 ปีที่แล้ว

    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.

    • @sahrishkhan6833
      @sahrishkhan6833 2 หลายเดือนก่อน

      Had you conneted to sir??!

  • @monzurmorshed.
    @monzurmorshed. 2 ปีที่แล้ว

    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?

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      It's Pearson correlation, what i have shown in the video.

  • @rizwanasyed14
    @rizwanasyed14 2 ปีที่แล้ว

    For the data with control is irrigated and treatment (drought or any other treatment), how can we do correlation analysis in R?

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      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......

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      just follow the same steps as shown in the video

  • @collegeofhorticulturebidar7111
    @collegeofhorticulturebidar7111 ปีที่แล้ว

    How to do correlation and path analysis without replication in agumented design by R software

    • @Guruprasad_A
      @Guruprasad_A  ปีที่แล้ว +1

      By taking the average values only you need to correlate.

  • @deryaakpinar5412
    @deryaakpinar5412 2 ปีที่แล้ว

    Thanks for the video. Is there any way to change the color of the heat map, say from blue to green?

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว +1

      ? corr_plot

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว +1

      Ask for the help in r studio using above command after you load metan,
      you will find all the variables you can control

  • @meliheser01
    @meliheser01 2 ปีที่แล้ว

    If i have a very large data with lots of variables. Can I just choose two variables with the variables codes?

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      yup
      check the second example by asking the help in r studio.
      ?corr_coef

  • @rukoochawla9714
    @rukoochawla9714 ปีที่แล้ว

    How to calculate genotypic and phenotypic correlation with mean values

    • @Guruprasad_A
      @Guruprasad_A  ปีที่แล้ว

      You can do it using metan.

  • @pranayreddy9147
    @pranayreddy9147 2 ปีที่แล้ว

    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.

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      Nothing is going to change, just use the data as it is with the replication and follow the steps shown in the video.

  • @anilkhar
    @anilkhar 3 ปีที่แล้ว

    Do we use the average of replications for correlation or should we use the replicated data for correlation

    • @Guruprasad_A
      @Guruprasad_A  3 ปีที่แล้ว

      Using replications is better, the results will be similar to that of average, but not identical.

  • @nansophiahan1391
    @nansophiahan1391 2 ปีที่แล้ว

    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?

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      corrl$cor

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      use the above code to find Pearson correlation coefficients

  • @surajshrestha9400
    @surajshrestha9400 2 ปีที่แล้ว

    how can we make the parameter "yield" in last column instead of middle in the plot?

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      Unfortunately we can't customize that in metan.

  • @rwaewae
    @rwaewae 2 ปีที่แล้ว

    Hi, can we plot summary statistics and correlation plot in single diagram.? thanx

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      You can do that in ggplot by taking the output values.

  • @vikrant549
    @vikrant549 ปีที่แล้ว

    Why my color bar is reversed and how to correct it? Thanks.

  • @gayatritehlan7135
    @gayatritehlan7135 ปีที่แล้ว

    I want to change the font and number size of the corr plot, can you plz tell me the code?

    • @Guruprasad_A
      @Guruprasad_A  ปีที่แล้ว

      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.

  • @raylsonmello6742
    @raylsonmello6742 2 ปีที่แล้ว

    excellent class!
    can you provide the script?

  • @nehanaaz1485
    @nehanaaz1485 ปีที่แล้ว

    How can we prepare data for the parameters of two different species?

  • @girmahaile9514
    @girmahaile9514 2 ปีที่แล้ว

    can we use this correlation for one location agro-morphological data?

    • @Guruprasad_A
      @Guruprasad_A  2 ปีที่แล้ว

      Yes, you can use correlation to study the association between them.

  • @drizharali
    @drizharali ปีที่แล้ว

    I received this even i install the package
    Error: package or namespace load failed for ‘metan’ in loadNamespace(j

    • @Guruprasad_A
      @Guruprasad_A  ปีที่แล้ว +1

      Install munsell package manually

    • @drizharali
      @drizharali ปีที่แล้ว

      @@Guruprasad_A Thank you so much the video. is helpful.

  • @mdbishalali7696
    @mdbishalali7696 ปีที่แล้ว

    How can i change the color and method to circular?

    • @Guruprasad_A
      @Guruprasad_A  ปีที่แล้ว

      ?corr_plot
      Ask for the help, you will get all the customisation that you can do.
      or you can check this video
      th-cam.com/video/1e3PhugevPM/w-d-xo.html

  • @ritikalamichhane8666
    @ritikalamichhane8666 ปีที่แล้ว

    Hey, how can I change the color of the plot?

    • @Guruprasad_A
      @Guruprasad_A  ปีที่แล้ว

      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",

    • @ritikalamichhane8666
      @ritikalamichhane8666 ปีที่แล้ว

      @@Guruprasad_A Thank you!

  • @jostnadsouza6825
    @jostnadsouza6825 2 ปีที่แล้ว

    I wanted data

  • @sahrishkhan6833
    @sahrishkhan6833 2 หลายเดือนก่อน

    Anyone..do you have email ID of Sir, please share