How to Plot correlation in R
Вставка
- Опубліковано 10 лют 2025
- 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")
################################
Wakje Magna! Very nice work and very useful! keeeeeeeeeeeeep it up
Thanks man, it helped a lot
Thanks.
thank you so much!!
You're welcome!
Thanks very interesting presentation keep it up.if you add another from the rest method specially the one that shown by number is good
Okay.
finally you made it..very nice ...
Thank you for your Patience.
Interesting!!!!! really very help full!!!!!!!!!!!
my question is how can we handle when there is more than one independent variable.
To the best of my knowldge It is only designed for one to one.
@@wakjiratesfahun3682 please make a video for the multiple independent variables, so that we can create several plots together!
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?
Can you share the data?
@@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!
Please send me pseudo data and I will provide the code. Here is my email adress,wakjiratesfahun@gmail.com