如何在一个tibble中绘制多个变量

时间:2017-05-02 21:51:55

标签: r ggplot2

这是我的反复:

Number of items: 4


Total cost: 1331


Total tax: 87


Cost + Tax: 1418


M & M Dessert Shoppe
--------------------

2.25 lbs. @ 3.99 /lb.
Peanut Butter Fudge        8.98
Vanilla Ice Cream          1.05
Hot Fudge Sundae with
Choc. Chip Ice Cream       1.95
4 @ 3.99 /dz.
Oatmeal Raisin Cookies     1.33
Tax                         .87
Total Cost                14.18

Number of items: 6

我试图在同一个地块上绘制“dom_richness”,“dom_simpson”和“don_shannon”,但是通过“REGION”[“DRY TORT”和“FLA KEYS”]以及“protected_status”[0,1, 2,全部]

到目前为止,我已经能够根据每个地区的多样性进行绘制,但似乎无法通过“protected_status”级别进行分类。

domain_diversity 

A tibble: 81 × 8    

YEAR   REGION protected_status data data_wide dom_richness
    <int>  <chr>  <chr>           <list> <list>   <int>
1   1999 DRY TORT                0 <tibble [339 × 2]> <tibble [1 × 339]>          
# ... with 71 more rows, and 2 more variables: dom_simpson <dbl>, dom_shannon <dbl>

提前感谢您提供任何提示和建议!

0 个答案:

没有答案