This script (iris-scatterplot.R
) creates the scatterplot with two boxplots in the High School Course of Study Guide for Mathematics of Japan (2018) Kōtō Gakkō Gakushū Shidō Yōryō Kaisetsu Sūgaku-hen, p. 48.
Last active
July 20, 2018 12:13
-
-
Save fnshr/1b585dbd76e14406421e8c8fac34092d to your computer and use it in GitHub Desktop.
Create the scatterplot in the High School Course of Study Guide for Mathematics of Japan (2018)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The current stable version of {car} package (Ver. 3.0-0) does not output scatterplots properly. | |
# Instead, use the development version as following: | |
# install.packages("car", repos="http://R-Forge.R-project.org") | |
car::scatterplot(Sepal.Length ~ Petal.Width | Species, | |
data = iris, | |
boxplots= "xy", xlab="", ylab="", | |
grid = FALSE, legend = FALSE, | |
col = "black", | |
regLine = FALSE, smooth = FALSE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment