"heightweight" R-dataset data-structure?
1
0
Entering edit mode
3.1 years ago
natasha.sernova ★ 4.0k

Dear all, I found the following paragraph in R graphics cookbook:

library(gcookbook) # For the data set
ggplot(heightweight, aes(x=sex, y=heightIn)) +
geom_dotplot(binaxis="y", binwidth=.5, stackdir="center")

I like the plot, and I would like to build my own plot using my own data.

But I didn't find the original dataset 'heightweight', although it is free and should be available somewhere.

I found only this link: https://rdrr.io/r/#datasets, but it didn't help me.

I need to see a structure of heightweight-dataset to make my own dataset from my data.

Please, help me! Natalia

heavyweight R-language • 1.7k views
ADD COMMENT
4
Entering edit mode
3.1 years ago
GenoMax 142k

This dataset is included in gcookbook. Load it as

>library(gcookbook)
>myData<- heightweight

> head(myData)
  sex ageYear ageMonth heightIn weightLb
1   f   11.92      143     56.3     85.0
2   f   12.92      155     62.3    105.0
3   f   12.75      153     63.3    108.0
4   f   13.42      161     59.0     92.0
5   f   15.92      191     62.5    112.5
6   f   14.25      171     62.5    112.0
ADD COMMENT
0
Entering edit mode

Great! A thousand thanks!

ADD REPLY

Login before adding your answer.

Traffic: 2186 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6