Fix figure manipulation

This commit is contained in:
Hadley Wickham
2022-11-18 10:42:43 -06:00
parent 78a1c12fe7
commit 89a854b7d0
15 changed files with 114 additions and 115 deletions

View File

@@ -133,24 +133,24 @@ str(x5)
<div class="cell">
<div class="cell-output-display">
<figure id="fig-view-expand-2"><p><img src="screenshots/View-1.png" alt="A screenshot of RStudio showing the list-viewer. It shows the two children of x4: the first child is a double vector and the second child is a list. A rightward facing triable indicates that the second child itself has children but you can't see them. " width="689"/></p>
<figcaption>Figure 22.1: The RStudio view lets you interactively explore a complex list. The viewer opens showing only the top level of the list.</figcaption>
<figure id="fig-view-collapsed"><p><img src="screenshots/View-1.png" alt="A screenshot of RStudio showing the list-viewer. It shows the two children of x4: the first child is a double vector and the second child is a list. A rightward facing triable indicates that the second child itself has children but you can't see them. " width="689"/></p>
<figcaption>The RStudio view lets you interactively explore a complex list. The viewer opens showing only the top level of the list.</figcaption>
</figure>
</div>
</div>
<div class="cell">
<div class="cell-output-display">
<figure class="figure"><p><img src="screenshots/View-2.png" alt="Another screenshot of the list-viewer having expand the second child of x2. It also has two children, a double vector and another list. " width="689"/></p>
<figcaption class="figure-caption">Figure 22.2: Clicking on the rightward facing triangle expands that component of the list so that you can also see its children.</figcaption>
<figure id="fig-view-expand-1"><p><img src="screenshots/View-2.png" alt="Another screenshot of the list-viewer having expand the second child of x2. It also has two children, a double vector and another list. " width="689"/></p>
<figcaption>Clicking on the rightward facing triangle expands that component of the list so that you can also see its children.</figcaption>
</figure>
</div>
</div>
<div class="cell">
<div class="cell-output-display">
<figure class="figure"><p><img src="screenshots/View-3.png" alt="Another screenshot, having expanded the grandchild of x4 to see its two children, again a double vector and a list. " width="689"/></p>
<figcaption class="figure-caption">Figure 22.3: You can repeat this operation as many times as needed to get to the data youre interested in. Note the bottom-left corner: if you click an element of the list, RStudio will give you the subsetting code needed to access it, in this case <code>x4[[2]][[2]][[2]]</code>.</figcaption>
<figure id="fig-view-expand-2"><p><img src="screenshots/View-3.png" alt="Another screenshot, having expanded the grandchild of x4 to see its two children, again a double vector and a list. " width="689"/></p>
<figcaption>You can repeat this operation as many times as needed to get to the data youre interested in. Note the bottom-left corner: if you click an element of the list, RStudio will give you the subsetting code needed to access it, in this case x4[[2]][[2]][[2]].<code>x4[[2]][[2]][[2]]</code>.</figcaption>
</figure>
</div>
</div>