-1
可以有人evtl.幫助我瞭解這些數據?如何從這個neotoma數據「子集」數據繪圖
我真的不知道如何處理它。我發佈了下面的一部分數據集。 現在我有這個功能Stratiplot()
;
我想要做的是從數據中只選擇某個物種。我想這個物種清單是例如根據$taxon.name
(見下文)。現在,我需要做些什麼來專門選擇一個物種,例如Abies。
我想把它放在Stratiplot()
中,所以結果圖只包含選擇的物種。 Stratiplot可以包含參數數據*,也可以使用子集。
$ 309:List of 6
..$ dataset :List of 6
.. ..$ site.data :'data.frame': 1 obs. of 8 variables:
.. .. ..$ site.id : int 303
.. .. ..$ site.name : chr "Brandreth Bog"
.. .. ..$ long : num -74.7
.. .. ..$ lat : num 43.9
.. .. ..$ elev : num 600
(...)
5" "Overpeck 1985" ...
.. ..$ age.type : chr [1:59] "Radiocarbon years BP" "Radiocarbon years BP" "Radiocarbon years BP" "Radiocarbon years BP" ...
.. ..$ chronology.id : int [1:59] 138 138 138 138 138 138 138 138 138 138 ...
.. ..$ sample.id : int [1:59] 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 ...
.. ..$ dataset.id : int [1:59] 309 309 309 309 309 309 309 309 309 309 ...
.. ..$ unit.name : logi [1:59] NA NA NA NA NA NA ...
..$ taxon.list :'data.frame': 65 obs. of 6 variables:
.. ..$ taxon.name : Factor w/ 65 levels "Abies","Acer undiff.",..: 1 2 3 4 5 6 7 8 9 10 ...
.. ..$ variable.units : Factor w/ 1 level "NISP": 1 1 1 1 1 1 1 1 1 1 ...
.. ..$ variable.element: Factor w/ 3 levels "pollen","pollen/spore",..: 1
由於已經提前!
問候,維拉
- =可選的數據幀,列表或環境(或對象強制轉換由as.data.frame 到的數據幀)包含變量曲線圖。如果沒有在數據中找到,變量取自環境(公式),通常是調用Stratiplot的 的環境。
我沒有....然後該返回: >「sub_dataset < - 在%C( 「冷杉」)波莉安娜[波莉安娜$ taxon.name% ]' Pollyanna中的錯誤[pollyanna $ taxon.name%%c(「Abies」),]: 維數不正確 這是怎麼回事? Thx –
可能希望在這裏檢查'class(sub_dataset)'並確保它確實是一個數據幀。 – user5359531
是啊再看看這個:'$ dataset:6列表'所以在這種情況下'dataset'實際上是一個列表,而不是數據框。它看起來像'taxon.name'包含在數據框'taxon.list'下,而不是'dataset'。 – user5359531