R

Portfolio Analysis with R

R packages used Choosing a portfolio Getting the data (from Yahoo Finance) Breaking down the code above Getting monthly returns Filtering the data Calculating returns Adding portfolio weights Ok, now for some useful calculations Standard Deviation of returns Table of Downside Risks Table of Drawdowns SemiDeviation Sharpe ratio Returns summary Visualizing portfolio performance Combining all returns into one object Plotting portfolio returns Visualizing each component compared to the portfolio Using highcharter Computing rolling standard deviations.

Philadelphia Parking Violations (2017)

Reading data and data manipulation Plot 1: Histogram of ticket issue times (hour) Adding new variables Making the plot Annotating the plot Plot 2: Day of week details Finding total tickets per day Making a faceted line chart Alternative way to make a very similar chart Making an interactive chart for the web with plotly Plot 3: Mapping parking violations by zip code Calculating tickets per day and grouping zip codes Reading in shapefile (.