Saving 7 x 5 in image
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
Saving 7 x 5 in image
ggplot figure all data
This visualizes the same data but plots individual slopes visualizing the within-player variation in the slopes.
Ten<-ggplot(data = Data, aes(x = MAV, y = Ten, colour =factor(ID))) +geom_point(size =2, alpha =0.75) +geom_smooth(method ="lm", se =FALSE, size =0.5) +scale_y_continuous(labels = scales::number_format(accuracy =0.1)) +scale_color_viridis_d(option ="viridis", direction =1)+theme_classic() +ylab("10-m time (s)") +xlab("Leap distance (cm)") +theme(text =element_text(size =12, color ="black", family ="sans"), axis.text =element_text(size =12, color ="black", family ="sans")) +guides(color =FALSE)Twenty<-ggplot(data = Data, aes(x = MAV, y = Twenty, colour =factor(ID))) +geom_point(size =2, alpha =0.75) +geom_smooth(method ="lm", se =FALSE, size =0.5) +scale_y_continuous(labels = scales::number_format(accuracy =0.1)) +scale_color_viridis_d(option ="viridis", direction =1)+theme_classic() +ylab("20-m time (s)") +xlab("Leap distance (cm)") +theme(text =element_text(size =12, color ="black", family ="sans"), axis.text =element_text(size =12, color ="black", family ="sans")) +guides(color =FALSE)figure2_new <-ggarrange(Ten, Twenty,labels =c("A", "B"),ncol =2, nrow =1, common.legend =TRUE, legend ="bottom",font.label =list(family ="sans", # Specify sans-serif fontsize =12# Specify font size ))
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
ggsave("figure2_new.png", dpi =640, )
Saving 7 x 5 in image
figure2_new
Current figures
Here is the code for “figure 3” through rmcorr for all and pre post PHV
# Load packagepar(mfrow =c(1, 1))png("figure2.png", res =640)
ggplot figure pre / post
This visualizes the same data but plots individual slopes visualizing the within-player variation in the slopes.
Preten <-ggplot(data = PrePHV, aes(x = MAV, y = Ten, colour =factor(ID))) +geom_point(size =2, alpha =0.75) +geom_smooth(method ="lm", se =FALSE, size =0.5) +scale_y_continuous(labels = scales::number_format(accuracy =0.1)) +scale_color_viridis_d(option ="viridis", direction =1)+theme_classic() +ylab("10-m time (s)") +xlab("Leap distance (cm)") +theme(text =element_text(size =12, color ="black", family ="sans"), axis.text =element_text(size =12, color ="black", family ="sans")) +guides(color =FALSE)Pretwenty <-ggplot(data = Postphvnew, aes(x = MAV, y = Twenty, colour =factor(ID))) +geom_point(size =2, alpha =0.75) +geom_smooth(method ="lm", se =FALSE, size =0.5) +scale_y_continuous(labels = scales::number_format(accuracy =0.1)) +scale_color_viridis_d(option ="viridis", direction =1)+theme_classic() +ylab("20-m time (s)") +xlab("Leap distance (cm)") +theme(text =element_text(size =12, color ="black", family ="sans"), axis.text =element_text(size =12, color ="black", family ="sans")) +guides(color =FALSE)Postten <-ggplot(data = Postphvnew, aes(x = MAV, y = Ten, colour =factor(ID))) +geom_point(size =2, alpha =0.75) +geom_smooth(method ="lm", se =FALSE, size =0.5) +scale_y_continuous(labels = scales::number_format(accuracy =0.1)) +scale_color_viridis_d(option ="viridis", direction =1)+theme_classic() +ylab("10-m time (s)") +xlab("Leap distance (cm)") +theme(text =element_text(size =12, color ="black", family ="sans"), axis.text =element_text(size =12, color ="black", family ="sans")) +guides(color =FALSE)Posttwenty <-ggplot(data = Postphvnew, aes(x = MAV, y = Twenty, colour =factor(ID))) +geom_point(size =2, alpha =0.75) +geom_smooth(method ="lm", se =FALSE, size =0.5) +scale_y_continuous(labels = scales::number_format(accuracy =0.1)) +scale_color_viridis_d(option ="viridis", direction =1)+theme_classic() +ylab("20-m time (s)") +xlab("Leap distance (cm)") +theme(text =element_text(size =12, color ="black", family ="sans"), axis.text =element_text(size =12, color ="black", family ="sans")) +guides(color =FALSE)figure3_new <-ggarrange(Preten , Pretwenty, Postten, Posttwenty,labels =c("A", "B", "C", "D"),ncol =2, nrow =2, common.legend =TRUE, legend ="bottom",font.label =list(family ="sans", # Specify sans-serif fontsize =12# Specify font size ))
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'