Skip to content

Instantly share code, notes, and snippets.

@MJacobs1985
Last active March 12, 2022 10:03
Show Gist options
  • Save MJacobs1985/21a4414743cd9982786e2fc6f72d4c9e to your computer and use it in GitHub Desktop.
Save MJacobs1985/21a4414743cd9982786e2fc6f72d4c9e to your computer and use it in GitHub Desktop.
nums <- unlist(lapply(dataset, is.numeric))
datasetnums<-dataset[ , nums]
corr <- round(cor(datasetnums), 1)
ggcorrplot(corr, hc.order = TRUE,
type = "lower",
lab = TRUE,
lab_size = 3,
title="Correlogram of dataset",
ggtheme=theme_bw)
ggplot(dataset, aes(x = Hb,y = VO2cdi, color = factor(ID))) +
geom_point(shape = 16, size = 5, alpha=0.5) +
theme_bw() + theme(legend.position = "none")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment