scatter plot | create scatter plot
plt.scatter(dataframe['x-axis'], bike_sharing['y-axis'])
plt.xlabel('name')
plt.ylabel('name')
plt.title('title)
plt.show()
scatter plot | create scatter plot
plt.scatter(dataframe['x-axis'], bike_sharing['y-axis'])
plt.xlabel('name')
plt.ylabel('name')
plt.title('title)
plt.show()
Scatter graph
# the iris dataset is provided by R natively
# Create a color palette
library(paletteer)
colors <- paletteer_c(package = "ggthemes", palette = "Green-Blue-White", n = 3)
# Scatterplot with categoric color scale
plot(
x = iris$Petal.Length,
y = iris$Petal.Width,
bg = colors[ unclass(iris$Species) ],
cex = 3,
pch=21
)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us