Sorting with arrange
(music_top200
>> arrange(_.duration)
)
10868 |
Slovakia |
69 |
Klop Klop |
Karlo |
17222 |
65.631 |
Europe |
4586 |
Greece |
187 |
FENDI |
iLLEOo |
16786 |
76.099 |
Europe |
9937 |
Poland |
138 |
Mistrz ping-ponga |
PRO8L3M |
145143 |
83.360 |
Europe |
... |
... |
... |
... |
... |
... |
... |
... |
535 |
Australia |
136 |
Innerbloom |
RÜFÜS DU SOL |
260092 |
578.041 |
Oceania |
1302 |
Brazil |
103 |
Poesia Acústica #8: Amor e Samba |
Pineapple StormTv |
839192 |
614.615 |
Americas |
11557 |
Turkey |
158 |
Susamam |
Şanışer |
194804 |
851.871 |
Asia |
12400 rows × 7 columns
Sorting with arrange
(music_top200
>> arrange(_.duration)
)
10868 |
Slovakia |
69 |
Klop Klop |
Karlo |
17222 |
65.631 |
Europe |
4586 |
Greece |
187 |
FENDI |
iLLEOo |
16786 |
76.099 |
Europe |
9937 |
Poland |
138 |
Mistrz ping-ponga |
PRO8L3M |
145143 |
83.360 |
Europe |
... |
... |
... |
... |
... |
... |
... |
... |
535 |
Australia |
136 |
Innerbloom |
RÜFÜS DU SOL |
260092 |
578.041 |
Oceania |
1302 |
Brazil |
103 |
Poesia Acústica #8: Amor e Samba |
Pineapple StormTv |
839192 |
614.615 |
Americas |
11557 |
Turkey |
158 |
Susamam |
Şanışer |
194804 |
851.871 |
Asia |
12400 rows × 7 columns
Using geom_text
(billie
>> ggplot(aes("energy", "valence", label = "track_name"))
+ geom_text()
)
Methods for summarizing
E.g. _.some_column.mean()
.mean()
.sum()
.median()
.min()
.max()
Starting y-axis at 0
(by_position
>> ggplot(aes("position", "max_streams"))
+ geom_point()
+ expand_limits(y = 0)
+ labs(title = "Top 200 hits - max streams overall"))