R Dataset / Package vcd / Hitters
Documentation |
---|
On this R-data statistics page, you will find information about the Hitters data set which pertains to Hitters Data. The Hitters data set is found in the vcd R package. You can load the Hitters data set in R by issuing the following command at the console data("Hitters"). This will load the data into a variable called Hitters. If R says the Hitters data set is not found, you can try installing the package by issuing this command install.packages("vcd") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the Hitters R data set. The size of this file is about 27,040 bytes. Hitters DataDescriptionThis data set is deduced from the Usagedata("Hitters") FormatA data frame with 154 observations and 4 variables.
SourceSAS System for Statistical Graphics, First Edition, Page A2.3 ReferencesM. Friendly (2000), Visualizing Categorical Data. SAS Institute, Cary, NC. Examplesdata("Hitters") attach(Hitters)colors <- c("black","red","green","blue","red","black","blue") pch <- substr(levels(Positions), 1, 1) ternaryplot(Hitters[,2:4], pch = as.character(Positions), col = colors[as.numeric(Positions)], main = "Baseball Hitters Data") grid_legend(0.8, 0.9, pch, colors, levels(Positions), title = "POSITION(S)")detach(Hitters) -- Dataset imported from https://www.r-project.org. |
Title | Authored on | Content type |
---|---|---|
OpenIntro Statistics Dataset - dream | August 9, 2020 - 12:25 PM | Dataset |
OpenIntro Statistics Dataset - winery_cars | August 9, 2020 - 2:38 PM | Dataset |
R Dataset / Package HSAUR / toothpaste | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package HSAUR / pottery | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package HistData / Guerry | March 9, 2018 - 1:06 PM | Dataset |
Attachment | Size |
---|---|
dataset-27926.csv | 26.41 KB |