search for: heartweight

Displaying 1 result from an estimated 1 matches for "heartweight".

2013 Feb 15
2
Making the plot window wider and using the predict function
Hello, I am new to R and have a couple of questions. My data set contains the variables "Bwt" and "Hwt", which are bodyweight and heartweight, respectively, of a group of cats. With the following code, I am making two plots, both to be viewed in the same plot window in R: library(MASS) maleData <- subset(cats, Sex == "M") linreg0 <- lm(maleData$Hwt ~ maleData$Bwt) par(mfrow=c(1,2)) plot(maleData$Hwt ~ maleData$Bwt)...