2023-11-14

Project Week 3

Create a web page presentation using R Markdown that features a plot created with Plotly. Host your webpage on either GitHub Pages, RPubs, or NeoCities. Your webpage must contain the date that you created the document, and it must contain a plot created with Plotly. We would love to see you show off your creativity!

We will be using avocado database and we will graph two different types of avocado, and its prices overtime.

On the next slide, we will be seeing avocado sales price over time.

Code for Avocado Graphs

av <- read.csv("avocado.csv")
av$Date <- ymd(av$Date)
trend<-aggregate(AveragePrice~Date+type,data=av,mean)

Avocado Graphs

## `geom_smooth()` using formula = 'y ~ x'

Insights

Organic avocado is prefered by people than conventional avocado. The average price of both aocados are increasing, but the tendency is bigger on the conventional avocado.