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

Комментарии • 68

  • @Guruprasad_A
    @Guruprasad_A  3 года назад +4

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

  • @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

  • @deepikachandrasekaran3554
    @deepikachandrasekaran3554 3 года назад +1

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

  • @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!

  • @kariiamba7324
    @kariiamba7324 Год назад

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

  • @Yabuwelde
    @Yabuwelde 2 года назад +2

    thank you, continue with others

  • @antonreinhold8478
    @antonreinhold8478 2 года назад +1

    Thank you!

  • @raylsonmello6742
    @raylsonmello6742 2 года назад

    excellent class!
    can you provide the script?

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

  • @rahayupertiwi4299
    @rahayupertiwi4299 3 года назад +1

    thanks

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

  • @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

  • @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"))

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

  • @mebratuify
    @mebratuify Год назад

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

  • @pabolutejasree6359
    @pabolutejasree6359 6 месяцев назад

    How to perform correlation network plots in R

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

  • @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

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

  • @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 года назад

      ruclips.net/video/BOuEAA1SDmM/видео.html

  • @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

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

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

  • @collegeofhorticulturebidar7111
    @collegeofhorticulturebidar7111 11 месяцев назад

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

    • @Guruprasad_A
      @Guruprasad_A  11 месяцев назад +1

      By taking the average values only you need to correlate.

  • @nehanaaz1485
    @nehanaaz1485 Год назад

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

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

  • @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

  • @rukoochawla9714
    @rukoochawla9714 Год назад

    How to calculate genotypic and phenotypic correlation with mean values

  • @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
      ruclips.net/video/1e3PhugevPM/видео.html

  • @vikrant549
    @vikrant549 Год назад

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

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

  • @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 Месяц назад

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