#create multivariable graph
ggplot(data=murders,aes(x=population/10^6,y=total,color=region))+
#adding points and alpha
geom_point(size=3, alpha=0.8)+
#color palette and legend title
scale_color_brewer(palette="set1", name="US Region")+
#changing from default colorto minimal theme
theme_minimal(base_size=12)+
#titles and labels
labs(
title="US Gun Murders vs State Populaton (2010",
subtitle="Higher state populations correlate with higher total gun murders ",
x="Population (millions",
y="Total Gun murders",
caption="Dslabs data package(murders"
)