Skip to content
Snippets Groups Projects
Commit 2370e7ba authored by Ben Anderson's avatar Ben Anderson
Browse files

amending figs for paper v2.0

parent ef67b467
No related branches found
No related tags found
No related merge requests found
...@@ -966,7 +966,7 @@ myCaption <- "Synthetic MTUS 1974 - 2014, UK sample (%, weighted)" ...@@ -966,7 +966,7 @@ myCaption <- "Synthetic MTUS 1974 - 2014, UK sample (%, weighted)"
ba_createStackedPlot(aggHhDemandActsWtDT, yVar = "pcAnyHHMainWt", fillVar = "actLabel", yLabel = "% halfhours (main act)", facetVars = "ba_survey ~ r_wday") ba_createStackedPlot(aggHhDemandActsWtDT, yVar = "pcAnyHHMainWt", fillVar = "actLabel", yLabel = "% halfhours (main act)", facetVars = "ba_survey ~ r_wday")
``` ```
Compare in home & out of home but without looking at day of the week (paper Fig 1). Adjust height of chart to fit single A4 page? Compare 1974 & 2014 but without looking at day of the week & in-home only (paper v2.0, Fig 2, revised). Adjust height of chart to fit single A4 page?
```{r repeat all acts but split by at home vs not at home, fig.height=10, fig.width=8} ```{r repeat all acts but split by at home vs not at home, fig.height=10, fig.width=8}
...@@ -1003,7 +1003,9 @@ plotDT <- ba_DEMANDreLabelSvyAggActs(wt) # as.data.table creates char from svy r ...@@ -1003,7 +1003,9 @@ plotDT <- ba_DEMANDreLabelSvyAggActs(wt) # as.data.table creates char from svy r
# for paper # for paper
myCaption <- "Synthetic MTUS 1974 - 2014, UK sample (%, weighted)" myCaption <- "Synthetic MTUS 1974 - 2014, UK sample (%, weighted)"
ba_createGreyStackedPlot(plotDT, yVar = "pcAnyHHMainWt", fillVar = "actLabel", yLabel = "% halfhours (main act)", facetVars = "ba_survey ~ inHome") dt <- plotDT[inHome == "At own home"]
ba_createStackedPlot(dt, yVar = "pcAnyHHMainWt", fillVar = "actLabel", yLabel = "% halfhours (main act)", facetVars = "ba_survey ~ inHome") +
scale_fill_distiller(palette = "Spectral")
``` ```
Now plot % point change ignoring day of the week (paper Fig 2, adjust height & width to suit single A4) Now plot % point change ignoring day of the week (paper Fig 2, adjust height & width to suit single A4)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment