ggplot(insurance_data, aes(x=HOME_VAL, y=INCOME, color=URBANICITY)) +
geom_point() + labs(title = "Relation between Home value, Year Income and Urbanicity", x = "Home value, $", y = "Yeary Income, $")
ggplot(insurance_data, aes(x=HOME_VAL, y=INCOME, color=URBANICITY)) +
geom_point() + geom_smooth(method=lm, se=FALSE, fullrange=TRUE) + labs(title = "Relation between Home value, Year Income and Urbanicity", x = "Home value, $", y = "Yeary Income, $")
## `geom_smooth()` using formula 'y ~ x'
Komentaras
# x, y and z coordinates
x <- insurance_data$HOME_VAL
y <- insurance_data$INCOME
z <- insurance_data$BLUEBOOK
scatter3D(x, y, z, pch = 18, theta = 20, phi = 20,
main = "Realeation of Home value, Income and Car value", xlab = "HOME_VALUE",
ylab ="INCOME", zlab = "VALUE of VECHLE")
scatter3D(x, y, z, pch = 18, theta = 20, phi = 0,
main = "Realeation of Home value, Income and Car value", xlab = "HOME_VALUE",
ylab ="INCOME", zlab = "VALUE of VECHLE")
scatter3D(x, y, z, pch = 18, theta = 90, phi = -90,
main = "Realeation of Home value, Income and Car value", xlab = "HOME_VALUE",
ylab ="INCOME", zlab = "VALUE of VECHLE")
scatter3D(x, y, z, phi = -45, bty = "g", type = "h",
ticktype = "detailed", pch = 19, cex = 0.5, main = "Realeation of Home value, Income and Car value", xlab = "HOME_VALUE",
ylab ="INCOME", zlab = "VALUE of VECHLE")
Komentaras
Komentaras