Browsed by
Tag: Sedona

Improving Weather Analysis Graphs with R programming

Improving Weather Analysis Graphs with R programming

Yesterday’s post got us through a basic box plot of the average temperatures in Sedona to help us continue to evaluate the best time of year to go based on my personal preferences for the weather. ┬áToday I’m going to clean up that chart and make it a little nicer to look at and easier to analyze. ┬áTo do that, I’m using a very common package in R called ‘ggplot2‘. First, I’m going to define the graph item by telling…

Read More Read More

Analyzing Weather Data in R programming

Analyzing Weather Data in R programming

Now that we’ve completed all of the prep work (see Reading Data), we are ready to begin analyzing the temperature data we’ve brought into R. To start, we need to format a few of the existing fields and create some new ones. We begin by telling R that the date field is indeed date format. The code below tells R to create a new field “Date” in the temps table that is equal to the conversation of the current field,…

Read More Read More

Reading Data for Travel Analysis into R

Reading Data for Travel Analysis into R

The last post covered all of the basics on how to prepare to start an analysis in R. Next, we need some data to analyze. Thanks to the internet we can find data on just about anything, including the historical trends of weather in almost any location. In this case we’re going to use data from Weather Underground. They provide a number of variables, but the raw format would be difficult to use: MST,Max TemperatureF,Mean TemperatureF,Min TemperatureF,Max Dew PointF,MeanDew PointF,Min…

Read More Read More