![]() Be conservative when telling data stories involving time series and trends. Is this signal or noise? You can look silly when things come back to equilibrium. Trend - What's changed? What's new? Can be effective around a breaking-news event.Make sure to ask yourself: What variables am I leaving out? You want to keep it simple, but not oversimplify, he said. Example: Looking at Ferguson, Missouri - yes, it's poor and unequal, but it's not so different from many other American communities? Danger: Oversimplification. Archetype - Telling story about something that's not necessarily different or new, but interesting.Sports are one example: Why Stephen Curry and Lionel Messi are so great? Ask yourself: Is this really so different? Good tactic: Profile someone/something as an outlier for interest, and don't just present data. It's like shooting fish in a barrel," Flowers said. "They're the bread and butter of data journalists. We're naturally drawn to stories about "best", "worst", etc. Outlier - This is the most common and the most effective data story, Flowers said.Also, ask yourself whether your finding is actually interesting to anyone besides you. Tactics: Simple summaries - best to do simple analysis on new data and take a conservative approach. It's easy to report something that's not really meaningful. Novelty - A story that presents new data, or data that a reader/viewer hasn't understood before in a specific context. ![]() There are 6 types of data stories, said former FiveThirtyEight data editor Andrew Flowers in his Saturday opening keynote address: Package authors rewrote some FiveThirtyEight code to make it more readable and to update it with newer packages in R's "tidyverse." You can find the fivethirtyeight package on CRAN. FiveThirtyEight staff collaborated with the authors. Jan 14, 9:10 AM: New on CRAN this week: an R package with data, code and stories from projects at, created by academics who were looking for engaging data sets to help teach undergraduate statistics. Without curly brackets displays R code without evaluating it. (The default uses a Bootstrap theme which is somewhat large.)Īnother useful tip if you write documents that display R code: ```r When rendering an R Markdown document, you can set the them option to NULL to reduce the HTML file size significantly. Here's what part of the document YAML header would look like: You can add your own CSS file and HTML snippets into an R Markdown document that you are converting to HTML. A few of the tips I rounded up from the session: Yihui Xie's slides from his Advanced R Markdown session are at. Look in Tools > Code > Diagnostics for options and to enable them. It can check for missing function arguments, typos in variable names and more. There are more diagnostics within RStudio than syntax problems. If you type the partial name of file name inside quotation marks, there will be auto-complete options that will include the path to that file. In addition, brand new to blogdown today - Yihui Xie wrote it this afternoon at the conference: a "new post" RStudio add-in for one-click adding a new post.Ī couple of RStudio IDE tips from Kevin Ushey: new_post() fills out some YAML metadata in a new R Markdown file for starting a new post. There's also a Live Preview add-in for RStudio that, as the name implies, lets you rebuild and preview your site locally. (Note: Some external Hugo themes may need to be tweaked to work with blogdown this isn't documented yet). Serve_site() rebuilds your site and lets you preview your site locally. It uses a static-site-generator called Hugo, which can be installed within R with the command blogdown::install_hugo.īlogdown helper functions include: new_site() to create a new site, new_post(), install_theme("Hugo theme URL"). You can create websites with R using R Markdown and the relatively new blogdown package. McPherson suggests making keyboard shortcuts for collapsing and expanding all notebook chunks. You can customize keyboard shortcuts in newer versions of RStudio.If you want to make a notebook more reproducible - restart R and run all chunks.A notebook's progress bar doubles as a navigation bar to take you to the chunk that's currently running.There's a new outline view for Notebooks in RStudio: Look for an icon at the top right or use ctrl-shift-O.Productivity tips for using R Notebooks, from RStudio software engineer Jonathan McPherson's presentation: I hope you'll come back to see the latest! I am updating this blog throughout the conference. Here are the news, tips & tricks I learned from the 2017 RStudio Conference in Kissimmee, Florida.
0 Comments
Leave a Reply. |