How to Plot correlation in R

Поділитися
Вставка
  • Опубліковано 5 жов 2024
  • library(AgroR)
    library(ggplot2)
    attach(Data2)
    plot_cor(PH,AGBY,
    method = "pearson",
    ylab = "Biomass Yield",
    xlab = "Plant height",
    theme = theme_classic(),
    pointsize = 4,
    shape = 15,
    fill = "black",
    color = "blue",
    axis.size = 12,
    ic = TRUE,
    title = "Correlation plot")
    ################################

КОМЕНТАРІ • 16

  • @abebewoldesenbet2080
    @abebewoldesenbet2080 5 місяців тому +2

    Wakje Magna! Very nice work and very useful! keeeeeeeeeeeeep it up

  • @lamigebrekidan1238
    @lamigebrekidan1238 Рік тому

    Thanks very interesting presentation keep it up.if you add another from the rest method specially the one that shown by number is good

  • @ademewoz8603
    @ademewoz8603 Рік тому +1

    Interesting!!!!! really very help full!!!!!!!!!!!
    my question is how can we handle when there is more than one independent variable.

    • @wakjiratesfahun3682
      @wakjiratesfahun3682  Рік тому +1

      To the best of my knowldge It is only designed for one to one.

    • @AnkitKumar-i1f8b
      @AnkitKumar-i1f8b Рік тому

      @@wakjiratesfahun3682 please make a video for the multiple independent variables, so that we can create several plots together!

  • @camilaleonor_
    @camilaleonor_ 11 місяців тому +1

    Thanks man, it helped a lot

  • @_neogurita
    @_neogurita 6 місяців тому +1

    thank you so much!!

  • @muhammadaqil2869
    @muhammadaqil2869 Рік тому

    finally you made it..very nice ...

  • @AnkitKumar-i1f8b
    @AnkitKumar-i1f8b Рік тому +1

    Hello, just for testing this method I have data of two variables in two rows (fuel and seed) but via this script, it's not picking up the speed as x. why this is happening?

    • @wakjiratesfahun3682
      @wakjiratesfahun3682  Рік тому +1

      Can you share the data?

    • @AnkitKumar-i1f8b
      @AnkitKumar-i1f8b Рік тому +1

      @@wakjiratesfahun3682
      genotype bm ht
      A 170 12
      b 175 15
      c 146 25
      d 163 35
      e 170 27
      f 172 30
      g 177 28
      h 185 34
      i 190 36
      j 200 43
      here is the script:
      plot_cor(
      ht,
      bm,
      method = "Biomass",
      ylab = "Height",
      xlab = "biomass",
      theme = theme_classic(),
      pointsize = 5,
      shape = 21,
      fill = "orange",
      color = "blue",
      axis.size = 12,
      ic = TRUE,
      title = NA,
      family = "sans")
      everything is fine, but not picking up my x variable shows like " Error: object 'bm' not found" Why so?
      thanks in advance!

    • @wakjiratesfahun3682
      @wakjiratesfahun3682  Рік тому +1

      Please send me pseudo data and I will provide the code. Here is my email adress,wakjiratesfahun@gmail.com