Skip to content

Commit 17e79eb

Browse files
initial commit
1 parent a28ac72 commit 17e79eb

File tree

1 file changed

+4
-6
lines changed
  • 3-Data-Visualization/R-12-visualization-relationships

1 file changed

+4
-6
lines changed

3-Data-Visualization/R-12-visualization-relationships/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ Use a scatterplot to show how the price of honey has evolved, year over year, pe
2020

2121
Let's start by importing the data and Seaborn:
2222

23-
```python
24-
import pandas as pd
25-
import matplotlib.pyplot as plt
26-
import seaborn as sns
27-
honey = pd.read_csv('../../data/honey.csv')
28-
honey.head()
23+
```r
24+
honey=read.csv('../../data/honey.csv')
25+
head(honey)
2926
```
3027
You notice that the honey data has several interesting columns, including year and price per pound. Let's explore this data, grouped by U.S. state:
3128

@@ -36,6 +33,7 @@ You notice that the honey data has several interesting columns, including year a
3633
| AR | 53000 | 65 | 3445000 | 1688000 | 0.59 | 2033000 | 1998 |
3734
| CA | 450000 | 83 | 37350000 | 12326000 | 0.62 | 23157000 | 1998 |
3835
| CO | 27000 | 72 | 1944000 | 1594000 | 0.7 | 1361000 | 1998 |
36+
| FL | 230000 | 98 |22540000 | 4508000 | 0.64 | 14426000 | 1998 |
3937

4038

4139
Create a basic scatterplot to show the relationship between the price per pound of honey and its U.S. state of origin. Make the `y` axis tall enough to display all the states:

0 commit comments

Comments
 (0)