knitr::opts_chunk$set(echo = TRUE)
Pre-Workflow Setup Steps 1. Download the selfquant package by entering the line devtools::install_github('maczokni/selfquant'). 2. Make your personal google sheet workbook to track your life. You can do this either by using the createSqTemplate() function within this package or making a duplicate through the Google Sheets UI here
library(googlesheets) library(dplyr) library(selfquant) library(ggplot2) library(plotly) library(ohicore) #Authenticate R to look at my Google Docs (my_sheets <- gs_ls()) #Pull my custom tracker to look at May data sq_data <- getQuant(title = "Chelsea Quant", workSheet = "0717") #calculate summary stats summary_df <- calcSummary(sq_data) #Plot the month's data plotWeek(sq_summary = summary_df) plotFlower(sq_summary = summary_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.