R/demplot.R

Defines functions demplot

Documented in demplot

#' demplot function
#'
#' This function plots the "feeling thermometers" of survey respondents in regards
#' to the 2016 Democratic presidential candidate and each respondent's 2016
#' Democratic House of Representatives candidate against each other.
#'
#' @param
#' @return plot of these two variables


demplot <- function() {

  ggplot2::ggplot(survey2, ggplot2::aes(x = DemPresTherm,
                             y = DemHouseTherm,
                             color = partyID,
                             alpha = weight)) +
           ggplot2::geom_point() +
           ggplot2::geom_jitter()
}
jayleetx/ANES2016 documentation built on May 21, 2019, 2:22 p.m.