From 5a37f627e77e96a4eb0b3857e257f82c0b97d9e0 Mon Sep 17 00:00:00 2001
From: Duncan Garmonsway <nacnudus@gmail.com>
Date: Thu, 18 Jan 2018 17:37:24 +0000
Subject: [PATCH] Fix before-after image and better caption

---
 README.Rmd      | 3 ++-
 README.md       | 4 +++-
 docs/index.html | 2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/README.Rmd b/README.Rmd
index a3e9113..7a25ff8 100644
--- a/README.Rmd
+++ b/README.Rmd
@@ -31,7 +31,8 @@ Excel (.xlsx) files can be prepared for
 [unpivotr](https://github.com/nacnudus/unpivotr) via the
 [tidyxl](https://github.com/nacnudus/tidyxl) package.
 
-![unpivotr before and after](./vignettes/before-after.png)
+![Left: a table with two levels of row and column headers. Right: a tidy
+version of the same table with one row of column headers.](`r here::here("vignettes", "before-after.png")`)
 
 ## Mailing list
 
diff --git a/README.md b/README.md
index a2c7cc2..e14d020 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,9 @@ Excel (.xlsx) files can be prepared for
 [unpivotr](https://github.com/nacnudus/unpivotr) via the
 [tidyxl](https://github.com/nacnudus/tidyxl) package.
 
-![unpivotr before and after](./vignettes/before-after.png)
+![Left: a table with two levels of row and column headers. Right: a tidy
+version of the same table with one row of column
+headers.](/home/nacnudus/R/unpivotr/vignettes/before-after.png)
 
 ## Mailing list
 
diff --git a/docs/index.html b/docs/index.html
index f25939b..4868eeb 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -99,7 +99,7 @@
 <p><a href="https://github.com/nacnudus/unpivotr">unpivotr</a> provides tools for converting data from complex or irregular layouts to a columnar structure. For example, tables with multi-level column or row headers, or spreadsheets, or nested HTML tables. Header and data cells can selected by their contents, position and formatting, and can be associated with one other by their relative positions.</p>
 <p>Excel (.xlsx) files can be prepared for <a href="https://github.com/nacnudus/unpivotr">unpivotr</a> via the <a href="https://github.com/nacnudus/tidyxl">tidyxl</a> package.</p>
 <div class="figure">
-<img src="./vignettes/before-after.png" alt="unpivotr before and after"><p class="caption">unpivotr before and after</p>
+<img src="/home/nacnudus/R/unpivotr/vignettes/before-after.png" alt="Left: a table with two levels of row and column headers. Right: a tidy version of the same table with one row of column headers."><p class="caption">Left: a table with two levels of row and column headers. Right: a tidy version of the same table with one row of column headers.</p>
 </div>
 <div id="mailing-list" class="section level2">
 <h2 class="hasAnchor">