Great! A thousand thanks!
• 0 views
•
link
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
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
Great! A thousand thanks!
Log in to answer this question.