brouwern / compbio2021

Assignments for Computational Biology Fall 2021 at the University of Pittsburgh
0 stars 3 forks source link

I am trying to get an ellipse but I can't see it. I have ellipse.type = "confidence" as an argument in my code and when I run the code R does not throw an error and displays everything else fine #97

Open sevs617 opened 2 years ago

sevs617 commented 2 years ago

https://github.com/brouwern/compbio2021/blob/452ec6c52b1dac6e6d68abdf659455fc76c8a23c/portfolio_predicting_amino_acid_characteristics-STUDENT.Rmd#L97

brouwern commented 2 years ago

sorry about not following up on this. i'll give you full credit if you turned it in late. if the data are in a dataframe (not just raw vectors) then you can plot things like this. has to be in a dataframe though

ggscatter(y = "pI", # x = "MW.da", # data = habk.df2, label = "aa.1",
add = "reg.line", conf.int = TRUE, ellipse = TRUE, cor.coef = TRUE, xlab = "Molecular mass (Daltons)", # ylab = "pI (pH at Isoelectric point)", # title = "Prediction of pI from MW")