这是我的数据框片段:
species bill_length_mm bill_depth_mm flipper_length_mm body_mass_g predicted_species
0 Adelie 18 18 181 3750 Chinstrap
1 Adelie 17 17 186 3800 Adelie
2 Adelie 18 18 195 3250 Gentoo
3 Adelie 0 0 0 0 Adelie
4 Chinstrap 19 19 193 3450 Chinstrap
5 Chinstrap 20 20 190 3650 Gentoo
6 Chinstrap 17 17 181 3625 Adelie
7 Gentoo 19 19 195 4675 Chinstrap
8 Gentoo 18 18 193 3475 Gentoo
9 Gentoo 20 20 190 4250 Gentoo
I want to make a biplot for my data, which would be something like this:
但我想 for each species
对predicted_species
矩阵做一个双曲线图,所以9个子曲线图,如上所述,我不确定如何才能实现.一种方法可能是将数据帧拆分成数据帧,并 for each 数据帧制作一个双曲线,但这不是很有效,很难进行比较.
有谁能就如何做到这一点提供一些建议?