Re: [R] how to add count to pie chart legend

2022-08-16 Thread John Fox
Dear Jim and Ana, Why not skip the legend and put the counts in the labels? with(df, pie(n, paste0(V1, " (", n, ")"), col=c(3, 2), main="Yes and No", radius=1)) Best, John On 2022-08-15 9:43 p.m., Jim Lemon wrote: Hi Ana, A lot of work for a little pie. df<-read.table(text="V1 n Yes 8

Re: [R] how to add count to pie chart legend

2022-08-15 Thread Rolf Turner
On Mon, 15 Aug 2022 19:20:28 -0700 Bert Gunter wrote: > Fortune Nomination! > > "A lot of work for a little pie." (in response to a query about how to > improve a pie chart) > -- Jim Lemon I second the nomination. cheers, Rolf > > On Mon, Aug 15, 2022 at 6:43 PM Jim Lemon > wrote: > > >