Skip to content

Commit a50d835

Browse files
authoredOct 6, 2020
Update ggplot2_inclass_notebook.ipynb
Adding additional import statements for class exercises
1 parent 952b886 commit a50d835

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎ggplot/ggplot2_inclass_notebook.ipynb

+8-1
Original file line numberDiff line numberDiff line change
@@ -1796,6 +1796,13 @@
17961796
"metadata": {},
17971797
"outputs": [],
17981798
"source": [
1799+
"# Import the required libraries\n",
1800+
"install.packages('gapminder')\n",
1801+
"install.packages('jsonlite')\n",
1802+
"library(jsonlite)\n",
1803+
"library(ggplot2)\n",
1804+
"library(gapminder)\n",
1805+
"\n",
17991806
"# Data to get you started\n",
18001807
"url = 'https://raw.githubusercontent.com/vega/vega/master/docs/data/gapminder.json'\n",
18011808
"data <- fromJSON(url, flatten=TRUE)\n",
@@ -1857,7 +1864,7 @@
18571864
"metadata": {},
18581865
"outputs": [],
18591866
"source": [
1860-
"#install.packages(\"titanic\")\n",
1867+
"install.packages(\"titanic\")\n",
18611868
"library(titanic)\n",
18621869
"data <- titanic_train"
18631870
]

0 commit comments

Comments
 (0)
Please sign in to comment.