Skip to content

Commit

Permalink
TR and MP comments incorporated into Ch 11
Browse files Browse the repository at this point in the history
  • Loading branch information
debnolan committed Apr 30, 2023
1 parent 987f64f commit 349154d
Show file tree
Hide file tree
Showing 9 changed files with 412 additions and 224 deletions.
95 changes: 58 additions & 37 deletions content/ch/11/viz_comparisons.ipynb

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions content/ch/11/viz_context.ipynb

Large diffs are not rendered by default.

48 changes: 20 additions & 28 deletions content/ch/11/viz_data_design.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/ch/11/viz_intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"In {numref}`Chapter %s <ch:eda>`, we connected the choice of a statistical graph to the kind of data being plotted; we also introduced many standard plots and showed how to read them. In this chapter, we discuss the principles of effective data visualization that make it easier for our audience to grasp the message in our plot. We talk about how to choose scales for axes,\n",
"handle large amounts of data with smoothing and aggregation, facilitate\n",
"meaningful comparisons, incorporate study design, and add contextual information. \n",
"We also show how to create plots in Python using `plotly`, a popular package for plotting in Python. \n",
"We also show how to create plots using `plotly`, a popular package for plotting in Python. \n",
"\n",
"One tricky part about writing a chapter on data visualization is that \n",
"software packages for visualization change all the time, so any code we display\n",
Expand Down
6 changes: 3 additions & 3 deletions content/ch/11/viz_other_tools.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"source": [
"## `matplotlib`\n",
"\n",
"[matplotlib](https://matplotlib.org/) is one of the first data visualization tools for Python.\n",
"The library [matplotlib](https://matplotlib.org/) is one of the first data visualization tools for Python.\n",
"Because of this, it is widely used and has a large ecosystem of packages.\n",
"Notably, the built-in plotting methods for `pandas` dataframes\n",
"make plots using `matplotlib`.\n",
Expand Down Expand Up @@ -85,8 +85,8 @@
"The grammar of graphics is an elegant system that we can use to describe \n",
"nearly every kind of plot we wish to make.\n",
"\n",
"This system is implemented in the popular plotting libraries `ggplot2` for the\n",
"R programming language and `vega` for JavaScript.\n",
"This system is implemented in the popular plotting libraries [ggplot2](https://ggplot2.tidyverse.org/) for the\n",
"R programming language and [vega](https://vega.github.io/vega/) for JavaScript.\n",
"A Python package called [altair](https://altair-viz.github.io/) provides a way to create `vega` plots using\n",
"Python, and we encourage interested readers to look over its documentation.\n",
"\n",
Expand Down
30 changes: 15 additions & 15 deletions content/ch/11/viz_plotly.ipynb

Large diffs are not rendered by default.

341 changes: 241 additions & 100 deletions content/ch/11/viz_scale.ipynb

Large diffs are not rendered by default.

87 changes: 57 additions & 30 deletions content/ch/11/viz_smoothing.ipynb

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion content/ch/11/viz_summary.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,19 @@
"After this chapter, you should be able to create a plot and understand\n",
"what kinds of adjustments would make the plot more effective.\n",
"As you learn how to make informative visualizations be patient and iterate.\n",
"None of us makes the perfect plot on the first try. And, as we make discoveries in an analysis, we continue to refine our plots. Then, when it comes time to present our findings to others, we sift through our work to get the few plots that best convince our future reader of the correctness and importance of our analysis. This can even lead to the creation of a new plot that best conveys our findings, which we iteratively develop. \n",
"None of us makes the perfect plot on the first try. And, as we make discoveries in an analysis, we continue to refine our plots. Then, when it comes time to present our findings to others, we sift through our work to get the few plots that best convince our future reader of the correctness and importance of our analysis. This can even lead to the creation of a new plot that better conveys our findings, which we iteratively develop. \n",
"\n",
"In the next chapter, we walk through an extended case study that\n",
"combines everything we've learned in the book so far. We hope that you\n",
"find yourself surprised by how much you can already do."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 349154d

Please sign in to comment.