Conditional Visualisation for
Statistical Models
Any usage of condvis starts with a data set and a fitted model in R.
Consider the following linear model relating fuel efficiency
(mpg
) to the weight of car (wt
) and number of
cylinders (cyl
), using the mtcars
data in R.
data(mtcars)
m <- lm(mpg ~ wt + cyl, mtcars)