Python for R Users
Daniel Chen
Instructor
barplothistplotboxplotregplotimport seaborn as sns
import matplotlib.pyplot as plt
sns.histplot(iris['sepal_length'], kde = True)
plt.show()

sns.countplot('species', data=iris)
plt.show()

sns.boxplot(x='species', y='sepal_length', data=iris)
plt.show()

sns.regplot(x='sepal_length', y='sepal_width', data=iris)
plt.show()

sns.regplot(x='sepal_length', y='sepal_width', data=iris,
fit_reg=False)
plt.show()

sns.lmplot(x='sepal_length', y='sepal_width', data=iris,
fit_reg=False,
col='species')
plt.show()

g = sns.FacetGrid(iris, col="species")
g = g.map(plt.hist, "sepal_length")
plt.show()

Python for R Users