Legend

We provide legends that have been styled in such a way that they can be added to the radar plot you want to create. but you can not display the legend on the radar plot by changing the show_legend=False parameter.

If you want to add a legend, you can place it in the 'top' or 'bottom' position and can also set legend_col to set the column on the legend.

Here's an example of a styling legend:

import reverievis as rv
import seaborn as sns

df = sns.load_dataset('penguins')
species_mass = df[['species', 'bill_length_mm', 
                   'bill_depth_mm', 'body_mass_g',
                   'flipper_length_mm']].groupby('species').mean().reset_index()

data_minmax = rd.get_minmax(df, columns=['bill_length_mm', 
                   'bill_depth_mm', 'body_mass_g',
                   'flipper_length_mm'])

rv.radar(data=species_mass, 
            category='species', 
            data_minmax=data_minmax,
            values=species_mass.columns[1:].to_list(),
            legend_col = 3)
show legend

when you don't want the legend you can use the parameter show_legend=False

hide legend

Last updated