查看R内置数据集

data() #查看datasets包中的数据集

Data sets in package ‘datasets’:

AirPassengers                  Monthly Airline Passenger Numbers 1949-1960
BJsales                        Sales Data with Leading Indicator
BJsales.lead (BJsales)         Sales Data with Leading Indicator
BOD                            Biochemical Oxygen Demand
CO2                            Carbon Dioxide Uptake in Grass Plants
ChickWeight                    Weight versus age of chicks on different diets
DNase                          Elisa assay of DNase
EuStockMarkets                 Daily Closing Prices of Major European Stock Indices,
                              1991-1998
ToothGrowth                    The Effect of Vitamin C on Tooth Growth in Guinea 
...

data(package = "ggplot2")# 加载ggplot2包中的数据集

Data sets in package ‘ggplot2’:

diamonds                       Prices of 50,000 round cut diamonds
economics                      US economic time series
economics_long                 US economic time series
faithfuld                      2d density estimate of Old Faithful data
luv_colours                    'colors()' in Luv space
midwest                        Midwest demographics
mpg                            Fuel economy data from 1999 and 2008 for 38 popular models of
                               car
msleep                         An updated and expanded version of the mammals sleep dataset
presidential                   Terms of 11 presidents from Eisenhower to Obama
seals                          Vector field of seal movements
txhousing                      Housing sales in TX
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容