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

added chunk title, re-ran

parent 5d0773b3
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ ggplot(plotDT,
Now draw a plot of hydro as a % of all.
```{r, fig.cap="Plot hydro as a % of all generation by date and time period"}
```{r hydro as percent chart, fig.cap="Plot hydro as a % of all generation by date and time period"}
# > hydro as a % of all ----
plotDT <- plotDT[, sumAllMW := sum(totalMW), keyby = .(Time_Period, rDate)] # calculate total
plotDT <- plotDT[, pcTotalMW := 100*(totalMW/sumAllMW)] # calculate %
......
......@@ -218,7 +218,7 @@ div.tocify {
<h1 class="title toc-ignore">myFirstRMarkdown</h1>
<h4 class="author"><em>Ben Anderson (<a href="mailto:b.anderson@soton.ac.uk">b.anderson@soton.ac.uk</a> <code>@dataknut</code>)</em></h4>
<h4 class="date"><em>Last run at: 2018-03-29 14:44:06</em></h4>
<h4 class="date"><em>Last run at: 2018-03-29 14:45:15</em></h4>
</div>
......@@ -410,7 +410,7 @@ ggplot(plotDT[Fuel_Code == &quot;Hydro&quot;],
geom_line()</code></pre>
<pre><code>## Warning: Removed 62 rows containing missing values (geom_path).</code></pre>
<div class="figure">
<img src="myFirstRMarkdown_files/figure-html/unnamed-chunk-1-1.png" alt="Plot hydro as a % of all generation by date and time period" />
<img src="myFirstRMarkdown_files/figure-html/hydro%20as%20percent%20chart-1.png" alt="Plot hydro as a % of all generation by date and time period" />
<p class="caption">Plot hydro as a % of all generation by date and time period</p>
</div>
</div>
......
---
title: "myFirstRMarkdown"
author: "Ben Anderson (b.anderson@soton.ac.uk `@dataknut`)"
date: 'Last run at: 2018-03-29 14:44:06'
date: 'Last run at: 2018-03-29 14:45:15'
output:
html_document:
fig_caption: yes
......@@ -138,7 +138,7 @@ ggplot(plotDT[Fuel_Code == "Hydro"],
## Warning: Removed 62 rows containing missing values (geom_path).
```
![Plot hydro as a % of all generation by date and time period](myFirstRMarkdown_files/figure-html/unnamed-chunk-1-1.png)
![Plot hydro as a % of all generation by date and time period](myFirstRMarkdown_files/figure-html/hydro as percent chart-1.png)
# Discuss your results
here
......
myFirstRMarkdown_files/figure-html/hydro as percent chart-1.png

233 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment