Skip to content

Commit d3ccfd1

Browse files
plotlyBook changed to plotly_book
1 parent 2b6aa53 commit d3ccfd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linked-views.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,10 @@ In addition to highlighting objects within an animation, objects may also be lin
341341

342342
For example, in Figure \@ref(fig:animation-gapminder), countries below the 50th percentile in terms of population density are highlighted in blue, then the animation is played again to reveal a fairly interesting difference in these groups. From 1952 to 1977, countries with a low population density seem to enjoy large increases in GDP per capita and moderate increases in life expectancy, then in the early 80s, their GPD seems to decrease while the life expectancy greatly increases. In comparison, the high density countries seems to enjoy a more consistent and steady increase in both GDP and life expectancy. Of course, there are a handful of exceptions to the overall trend, such as the noticeable drop in life expectancy for a handful of countries during the nineties, which are mostly African countries feeling the affects of war.
343343

344-
The `gapminder` data does not include a measure of population density, but the `gap` dataset (included with the **plotlyBook** R package) adds a column containing the population per square kilometer (`popDen`), which helps implement Figure \@ref(fig:animation-gapminder). In order to link the animated layers (i.e., red points), we need another version of `gap` that marks the country variable as the link between the plots (`gapKey`).
344+
The `gapminder` data does not include a measure of population density, but the `gap` dataset (included with the **plotly_book** R package) adds a column containing the population per square kilometer (`popDen`), which helps implement Figure \@ref(fig:animation-gapminder). In order to link the animated layers (i.e., red points), we need another version of `gap` that marks the country variable as the link between the plots (`gapKey`).
345345

346346
```r
347-
data(gap, package = "plotlyBook")
347+
data(gap, package = "plotly_book")
348348

349349
gapKey <- highlight_key(gap, ~country)
350350

0 commit comments

Comments
 (0)