Re: [R] Help with steam graph

2022-10-02 Thread David Winsemius
I think you are being dishonest. That code does not appear on hrbrmstr's vignette at least in a form that I recognize. When I run your code from the first posting with all the instances of `com_num` replaced by `com_name` and removing the `pointer` entry in dat which throws an error when tryin

Re: [R] Help with steam graph

2022-10-02 Thread Tariq Khasiri
Actually in my main data the column name is com_num ( where mistakenly I pasted the sample data here under the com_name ). So, when I run the command successfully this is the error shows up - ▆ 1. ├─... %>% sg_legend(show = TRUE, label = "Share: ") 2. ├─streamgraph::sg_legend(., show = TRU

Re: [R] Help with steam graph

2022-10-02 Thread David Winsemius
I don’t see a column with the name ‘com_num’, so the error message makes complete sense. — David Sent from my iPhone > On Oct 2, 2022, at 5:06 AM, Tariq Khasiri wrote: > > Hi, i'm trying to create a steamgraph with the following data by creating a > unit indicator by combing the year and m

[R] Help with steam graph

2022-10-02 Thread Tariq Khasiri
Hi, i'm trying to create a steamgraph with the following data by creating a unit indicator by combing the year and month. But, I'm getting error as : Error in `group_by()`: ! Must group by variables found in `.data`. ✖ Column `com_num` is not found. Run `rlang::last_error()` to see where the error