Skip to content

Commit 0d8db6e

Browse files
Deploying to gh-pages from @ be67608 🚀
1 parent f3c0fab commit 0d8db6e

14 files changed

Lines changed: 44 additions & 44 deletions

File tree

-148 Bytes
Loading
348 Bytes
Loading
455 Bytes
Loading
7.93 KB
Loading
-308 Bytes
Loading
89 Bytes
Loading

search.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,6 +1142,6 @@
11421142
"href": "vignettes/introduction.html#footnotes",
11431143
"title": "Introduction to tinyplot",
11441144
"section": "Footnotes",
1145-
"text": "Footnotes\n\n\nAt this point, experienced base plot users might protest that you can colour by groups using the col argument, e.g. with(aq, plot(Day, Temp, col = Month)). This is true, but there are several limitations. First, you don’t get an automatic legend. Second, the base plot.formula method doesn’t specify the grouping within the formula itself (not a deal-breaker, but not particularly consistent either). Third, and perhaps most importantly, this grouping doesn’t carry over to line plots (i.e., type=“l”). Instead, you have to transpose your data and use matplot. See this old StackOverflow thread for a longer discussion.↩︎\nSee the accompanying help pages of those two functions for more details on the available palettes, or read Zeileis & Murrell (2023, The R Journal, doi:10.32614/RJ-2023-071).↩︎\nFor example, if you have installed the ggsci package (link) then you could use palette = ggsci::pal_npg() to generate a palette consistent with those used by the Nature Publishing Group.↩︎\nThe grouped setting here makes this visualization equivalent to predict(lm(Temp ~ 0 + Month / Day, data = aq), interval = \"confidence\").↩︎\nThe default dimensions are 7x7, with a resolution of 300 DPI. However, these too can be customized via the file.width, file.height, and file.res parameters in tpar().↩︎"
1145+
"text": "Footnotes\n\n\nAt this point, experienced base plot users might protest that you can colour by groups using the col argument, e.g. with(aq, plot(Day, Temp, col = Month)). This is true, but there are several limitations. First, you don’t get an automatic legend. Second, the base plot.formula method doesn’t specify the grouping within the formula itself (not a deal-breaker, but not particularly consistent either). Third, and perhaps most importantly, this grouping doesn’t carry over to line plots (i.e., type=“l”). Instead, you have to transpose your data and use matplot. See this old StackOverflow thread for a longer discussion.↩︎\nSee the accompanying help pages of those two functions for more details on the available palettes, or read Zeileis & Murrell (2023, The R Journal, doi:10.32614/RJ-2023-071).↩︎\nFor example, if you have installed the ggsci package (link) then you could use palette = pal_npg() to generate a palette consistent with those used by the Nature Publishing Group.↩︎\nThe grouped setting here makes this visualization equivalent to predict(lm(Temp ~ 0 + Month / Day, data = aq), interval = \"confidence\").↩︎\nThe default dimensions are 7x7, with a resolution of 300 DPI. However, these too can be customized via the file.width, file.height, and file.res parameters in tpar().↩︎"
11461146
}
11471147
]

sitemap.xml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,170 +2,170 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://grantmcdermott.com/tinyplot/NEWS.html</loc>
5-
<lastmod>2025-05-23T01:38:44.804Z</lastmod>
5+
<lastmod>2025-05-23T01:43:55.629Z</lastmod>
66
</url>
77
<url>
88
<loc>https://grantmcdermott.com/tinyplot/vignettes/themes.html</loc>
9-
<lastmod>2025-05-23T01:39:06.360Z</lastmod>
9+
<lastmod>2025-05-23T01:44:17.391Z</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://grantmcdermott.com/tinyplot/vignettes/gallery.html</loc>
13-
<lastmod>2025-05-23T01:39:06.360Z</lastmod>
13+
<lastmod>2025-05-23T01:44:17.391Z</lastmod>
1414
</url>
1515
<url>
1616
<loc>https://grantmcdermott.com/tinyplot/LICENSE.html</loc>
17-
<lastmod>2025-05-23T01:38:44.814Z</lastmod>
17+
<lastmod>2025-05-23T01:43:55.639Z</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://grantmcdermott.com/tinyplot/man/type_polygon.html</loc>
21-
<lastmod>2025-05-23T01:38:58.510Z</lastmod>
21+
<lastmod>2025-05-23T01:44:09.155Z</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://grantmcdermott.com/tinyplot/man/tpar.html</loc>
25-
<lastmod>2025-05-23T01:38:49.888Z</lastmod>
25+
<lastmod>2025-05-23T01:44:00.097Z</lastmod>
2626
</url>
2727
<url>
2828
<loc>https://grantmcdermott.com/tinyplot/man/tinytheme.html</loc>
29-
<lastmod>2025-05-23T01:38:48.836Z</lastmod>
29+
<lastmod>2025-05-23T01:43:59.457Z</lastmod>
3030
</url>
3131
<url>
3232
<loc>https://grantmcdermott.com/tinyplot/man/get_saved_par.html</loc>
33-
<lastmod>2025-05-23T01:38:45.778Z</lastmod>
33+
<lastmod>2025-05-23T01:43:56.626Z</lastmod>
3434
</url>
3535
<url>
3636
<loc>https://grantmcdermott.com/tinyplot/man/tinylabel.html</loc>
37-
<lastmod>2025-05-23T01:38:46.516Z</lastmod>
37+
<lastmod>2025-05-23T01:43:57.222Z</lastmod>
3838
</url>
3939
<url>
4040
<loc>https://grantmcdermott.com/tinyplot/man/type_loess.html</loc>
41-
<lastmod>2025-05-23T01:38:57.366Z</lastmod>
41+
<lastmod>2025-05-23T01:44:07.642Z</lastmod>
4242
</url>
4343
<url>
4444
<loc>https://grantmcdermott.com/tinyplot/man/type_points.html</loc>
45-
<lastmod>2025-05-23T01:38:57.939Z</lastmod>
45+
<lastmod>2025-05-23T01:44:08.435Z</lastmod>
4646
</url>
4747
<url>
4848
<loc>https://grantmcdermott.com/tinyplot/man/type_jitter.html</loc>
49-
<lastmod>2025-05-23T01:38:55.551Z</lastmod>
49+
<lastmod>2025-05-23T01:44:05.715Z</lastmod>
5050
</url>
5151
<url>
5252
<loc>https://grantmcdermott.com/tinyplot/man/type_histogram.html</loc>
53-
<lastmod>2025-05-23T01:38:54.987Z</lastmod>
53+
<lastmod>2025-05-23T01:44:05.104Z</lastmod>
5454
</url>
5555
<url>
5656
<loc>https://grantmcdermott.com/tinyplot/man/type_barplot.html</loc>
57-
<lastmod>2025-05-23T01:38:51.352Z</lastmod>
57+
<lastmod>2025-05-23T01:44:01.405Z</lastmod>
5858
</url>
5959
<url>
6060
<loc>https://grantmcdermott.com/tinyplot/man/type_density.html</loc>
61-
<lastmod>2025-05-23T01:38:52.649Z</lastmod>
61+
<lastmod>2025-05-23T01:44:02.720Z</lastmod>
6262
</url>
6363
<url>
6464
<loc>https://grantmcdermott.com/tinyplot/man/type_rect.html</loc>
65-
<lastmod>2025-05-23T01:39:00.243Z</lastmod>
65+
<lastmod>2025-05-23T01:44:10.927Z</lastmod>
6666
</url>
6767
<url>
6868
<loc>https://grantmcdermott.com/tinyplot/man/type_polypath.html</loc>
69-
<lastmod>2025-05-23T01:38:59.070Z</lastmod>
69+
<lastmod>2025-05-23T01:44:09.730Z</lastmod>
7070
</url>
7171
<url>
7272
<loc>https://grantmcdermott.com/tinyplot/man/type_lines.html</loc>
73-
<lastmod>2025-05-23T01:38:56.158Z</lastmod>
73+
<lastmod>2025-05-23T01:44:06.278Z</lastmod>
7474
</url>
7575
<url>
7676
<loc>https://grantmcdermott.com/tinyplot/man/type_segments.html</loc>
77-
<lastmod>2025-05-23T01:39:02.846Z</lastmod>
77+
<lastmod>2025-05-23T01:44:13.480Z</lastmod>
7878
</url>
7979
<url>
8080
<loc>https://grantmcdermott.com/tinyplot/man/draw_legend.html</loc>
81-
<lastmod>2025-05-23T01:38:44.997Z</lastmod>
81+
<lastmod>2025-05-23T01:43:55.820Z</lastmod>
8282
</url>
8383
<url>
8484
<loc>https://grantmcdermott.com/tinyplot/index.html</loc>
85-
<lastmod>2025-05-23T01:38:44.829Z</lastmod>
85+
<lastmod>2025-05-23T01:43:55.653Z</lastmod>
8686
</url>
8787
<url>
8888
<loc>https://grantmcdermott.com/tinyplot/CITATION.html</loc>
89-
<lastmod>2025-05-23T01:38:44.862Z</lastmod>
89+
<lastmod>2025-05-23T01:43:55.686Z</lastmod>
9090
</url>
9191
<url>
9292
<loc>https://grantmcdermott.com/tinyplot/man/type_glm.html</loc>
93-
<lastmod>2025-05-23T01:38:54.395Z</lastmod>
93+
<lastmod>2025-05-23T01:44:04.530Z</lastmod>
9494
</url>
9595
<url>
9696
<loc>https://grantmcdermott.com/tinyplot/man/tinyplot.html</loc>
97-
<lastmod>2025-05-23T01:38:48.092Z</lastmod>
97+
<lastmod>2025-05-23T01:43:58.855Z</lastmod>
9898
</url>
9999
<url>
100100
<loc>https://grantmcdermott.com/tinyplot/man/type_ridge.html</loc>
101-
<lastmod>2025-05-23T01:39:01.537Z</lastmod>
101+
<lastmod>2025-05-23T01:44:12.075Z</lastmod>
102102
</url>
103103
<url>
104104
<loc>https://grantmcdermott.com/tinyplot/man/type_text.html</loc>
105-
<lastmod>2025-05-23T01:39:05.167Z</lastmod>
105+
<lastmod>2025-05-23T01:44:16.029Z</lastmod>
106106
</url>
107107
<url>
108108
<loc>https://grantmcdermott.com/tinyplot/man/type_abline.html</loc>
109-
<lastmod>2025-05-23T01:38:50.639Z</lastmod>
109+
<lastmod>2025-05-23T01:44:00.666Z</lastmod>
110110
</url>
111111
<url>
112112
<loc>https://grantmcdermott.com/tinyplot/man/type_spline.html</loc>
113-
<lastmod>2025-05-23T01:39:03.980Z</lastmod>
113+
<lastmod>2025-05-23T01:44:14.846Z</lastmod>
114114
</url>
115115
<url>
116116
<loc>https://grantmcdermott.com/tinyplot/man/type_lm.html</loc>
117-
<lastmod>2025-05-23T01:38:56.782Z</lastmod>
117+
<lastmod>2025-05-23T01:44:06.897Z</lastmod>
118118
</url>
119119
<url>
120120
<loc>https://grantmcdermott.com/tinyplot/man/type_spineplot.html</loc>
121-
<lastmod>2025-05-23T01:39:03.388Z</lastmod>
121+
<lastmod>2025-05-23T01:44:14.076Z</lastmod>
122122
</url>
123123
<url>
124124
<loc>https://grantmcdermott.com/tinyplot/man/type_summary.html</loc>
125-
<lastmod>2025-05-23T01:39:04.579Z</lastmod>
125+
<lastmod>2025-05-23T01:44:15.448Z</lastmod>
126126
</url>
127127
<url>
128128
<loc>https://grantmcdermott.com/tinyplot/man/type_qq.html</loc>
129-
<lastmod>2025-05-23T01:38:59.655Z</lastmod>
129+
<lastmod>2025-05-23T01:44:10.324Z</lastmod>
130130
</url>
131131
<url>
132132
<loc>https://grantmcdermott.com/tinyplot/man/type_ribbon.html</loc>
133-
<lastmod>2025-05-23T01:39:00.778Z</lastmod>
133+
<lastmod>2025-05-23T01:44:11.521Z</lastmod>
134134
</url>
135135
<url>
136136
<loc>https://grantmcdermott.com/tinyplot/man/tinyplot_add.html</loc>
137-
<lastmod>2025-05-23T01:38:47.242Z</lastmod>
137+
<lastmod>2025-05-23T01:43:57.980Z</lastmod>
138138
</url>
139139
<url>
140140
<loc>https://grantmcdermott.com/tinyplot/man/type_violin.html</loc>
141-
<lastmod>2025-05-23T01:39:05.783Z</lastmod>
141+
<lastmod>2025-05-23T01:44:16.657Z</lastmod>
142142
</url>
143143
<url>
144144
<loc>https://grantmcdermott.com/tinyplot/man/type_function.html</loc>
145-
<lastmod>2025-05-23T01:38:53.795Z</lastmod>
145+
<lastmod>2025-05-23T01:44:03.912Z</lastmod>
146146
</url>
147147
<url>
148148
<loc>https://grantmcdermott.com/tinyplot/man/type_boxplot.html</loc>
149-
<lastmod>2025-05-23T01:38:52.064Z</lastmod>
149+
<lastmod>2025-05-23T01:44:02.124Z</lastmod>
150150
</url>
151151
<url>
152152
<loc>https://grantmcdermott.com/tinyplot/man/type_rug.html</loc>
153-
<lastmod>2025-05-23T01:39:02.291Z</lastmod>
153+
<lastmod>2025-05-23T01:44:12.813Z</lastmod>
154154
</url>
155155
<url>
156156
<loc>https://grantmcdermott.com/tinyplot/man/type_errorbar.html</loc>
157-
<lastmod>2025-05-23T01:38:53.222Z</lastmod>
157+
<lastmod>2025-05-23T01:44:03.313Z</lastmod>
158158
</url>
159159
<url>
160160
<loc>https://grantmcdermott.com/tinyplot/vignettes/tips.html</loc>
161-
<lastmod>2025-05-23T01:39:06.360Z</lastmod>
161+
<lastmod>2025-05-23T01:44:17.391Z</lastmod>
162162
</url>
163163
<url>
164164
<loc>https://grantmcdermott.com/tinyplot/vignettes/types.html</loc>
165-
<lastmod>2025-05-23T01:39:06.360Z</lastmod>
165+
<lastmod>2025-05-23T01:44:17.391Z</lastmod>
166166
</url>
167167
<url>
168168
<loc>https://grantmcdermott.com/tinyplot/vignettes/introduction.html</loc>
169-
<lastmod>2025-05-23T01:39:06.360Z</lastmod>
169+
<lastmod>2025-05-23T01:44:17.391Z</lastmod>
170170
</url>
171171
</urlset>
-319 Bytes
Loading

vignettes/introduction.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ <h2 class="anchored" data-anchor-id="conclusion">Conclusion</h2>
759759
<ol>
760760
<li id="fn1"><p>At this point, experienced base plot users might protest that you <em>can</em> colour by groups using the <code>col</code> argument, e.g. <code>with(aq, plot(Day, Temp, col = Month))</code>. This is true, but there are several limitations. First, you don’t get an automatic legend. Second, the base <code>plot.formula</code> method doesn’t specify the grouping within the formula itself (not a deal-breaker, but not particularly consistent either). Third, and perhaps most importantly, this grouping doesn’t carry over to line plots (i.e., type=“l”). Instead, you have to transpose your data and use <code>matplot</code>. See <a href="https://stackoverflow.com/questions/10519873/how-to-create-a-line-plot-with-groups-in-base-r-without-loops">this</a> old StackOverflow thread for a longer discussion.<a href="#fnref1" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
761761
<li id="fn2"><p>See the accompanying help pages of those two functions for more details on the available palettes, or read Zeileis &amp; Murrell (2023, The R Journal, <a href="https://doi.org/10.32614/RJ-2023-071">doi:10.32614/RJ-2023-071</a>).<a href="#fnref2" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
762-
<li id="fn3"><p>For example, if you have installed the <strong>ggsci</strong> package (<a href="https://nanx.me/ggsci/index.html">link</a>) then you could use <code>palette = ggsci::pal_npg()</code> to generate a palette consistent with those used by the Nature Publishing Group.<a href="#fnref3" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
762+
<li id="fn3"><p>For example, if you have installed the <strong>ggsci</strong> package (<a href="https://nanx.me/ggsci/index.html">link</a>) then you could use <code>palette = pal_npg()</code> to generate a palette consistent with those used by the Nature Publishing Group.<a href="#fnref3" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
763763
<li id="fn4"><p>The grouped setting here makes this visualization equivalent to <code>predict(lm(Temp ~ 0 + Month / Day, data = aq), interval = "confidence")</code>.<a href="#fnref4" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
764764
<li id="fn5"><p>The default dimensions are 7x7, with a resolution of 300 DPI. However, these too can be customized via the <code>file.width</code>, <code>file.height</code>, and <code>file.res</code> parameters in <a href="https://grantmcdermott.com/tinyplot/man/tpar.html"><code>tpar()</code></a>.<a href="#fnref5" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
765765
</ol>

0 commit comments

Comments
 (0)