Guest User

Untitled

a guest
Jan 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. # Visualizing 3-D mix data using scatter plots
  2. # leveraging the concepts of hue for categorical dimension
  3. jp = sns.pairplot(wines, x_vars=["sulphates"], y_vars=["alcohol"], size=4.5,
  4. hue="wine_type", palette={"red": "#FF9999", "white": "#FFE888"},
  5. plot_kws=dict(edgecolor="k", linewidth=0.5))
  6.  
  7. # we can also view relationships\correlations as needed
  8. lp = sns.lmplot(x='sulphates', y='alcohol', hue='wine_type',
  9. palette={"red": "#FF9999", "white": "#FFE888"},
  10. data=wines, fit_reg=True, legend=True,
  11. scatter_kws=dict(edgecolor="k", linewidth=0.5))
Add Comment
Please, Sign In to add comment