Two quantitative and one categorical, so a scatterplot with the categorical variable distinguished by colour (or some other way).
Consider an example in R software : Its just an example. Please look for the code while applying in R. "ggplot" is that plot where two quantitative and one categorical data can be plotted
library(MASS)
library(car)
my_url="https://www.utsc.utoronto.ca/~butler/d29/kite.csv"
kite=read_csv(my_url)
install.packages("ggplot2")
library(ggplot2)
ggplot(kite, aes(x=wing_length, y=tail_length, colour=sex))+geom_point()
The two quantitative variables are both responses, so they can
be on either axis. Thus, this:
ggplot(kite, aes(x=wing_length, y=tail_length,
colour=sex))+geom_point()
Get Answers For Free
Most questions answered within 1 hours.