R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

## 
## The downloaded binary packages are in
##  /var/folders/0t/rn_fyzy57zj7zk90gbq3s6x40000gn/T//RtmpNoOtvS/downloaded_packages
## 
## The downloaded binary packages are in
##  /var/folders/0t/rn_fyzy57zj7zk90gbq3s6x40000gn/T//RtmpNoOtvS/downloaded_packages
## 
## The downloaded binary packages are in
##  /var/folders/0t/rn_fyzy57zj7zk90gbq3s6x40000gn/T//RtmpNoOtvS/downloaded_packages
## 
## The downloaded binary packages are in
##  /var/folders/0t/rn_fyzy57zj7zk90gbq3s6x40000gn/T//RtmpNoOtvS/downloaded_packages
## 
## The downloaded binary packages are in
##  /var/folders/0t/rn_fyzy57zj7zk90gbq3s6x40000gn/T//RtmpNoOtvS/downloaded_packages
## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
## ✓ tibble  3.0.4     ✓ dplyr   1.0.4
## ✓ tidyr   1.1.2     ✓ stringr 1.4.0
## ✓ readr   1.4.0     ✓ forcats 0.5.1
## ✓ purrr   0.3.4
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## x dplyr::filter() masks stats::filter()
## x dplyr::lag()    masks stats::lag()
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout
aplot <- aplot + geom_point(mapping = aes(color = Region), shape = 21, size = 2, fill = "white")
##1b. set parameter of color var to by "Region" 
###1b1.Color the points based on Region using hollow points
###1b2. set value in geom_point for fill

                  #mapping = aes(color = Region), 
                  #shape, # defines shape
                  # size, # defines correct size
                  # show.legend = TRUE,  # implements a legend

Row {data-width=400}

Main Graph

## Warning in geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]): geom_GeomTextRepel() has yet to be implemented in plotly.
##   If you'd like to see this geom implemented,
##   Please open an issue with your example code at
##   https://github.com/ropensci/plotly/issues

Row {data-width=600}

Data Table

Random - Beaches Dataset (years by temperature)

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.