Re: [R] Constructing stacked bar plot

2021-06-28 Thread Jeff Reichman
Thanks - that helps -Original Message- From: Rui Barradas Sent: Monday, June 28, 2021 12:47 AM To: reichm...@sbcglobal.net; R-help@r-project.org Subject: Re: [R] Constructing stacked bar plot Hello, Something like this? # count number of medals awarded to each Team medal_counts_ctry

Re: [R] Constructing stacked bar plot

2021-06-27 Thread Rui Barradas
Hello, Something like this? # count number of medals awarded to each Team medal_counts_ctry <- medals %>% na.omit() %>% count(region, Medal, name = "Count") #head(medal_counts_ctry) # order Team by total medal count levs_medal <- medal_counts_ctry %>% group_by(region) %>% summarize(To

Re: [R] Constructing stacked bar plot

2021-06-27 Thread Avi Gross via R-help
#x27; Subject: Re: [R] Constructing stacked bar plot This line medal_data <- medal_counts_ctry %>% filter(medal_counts_ctry$.rows > 100) From: Bert Gunter Sent: Sunday, June 27, 2021 11:32 AM To: reichm...@sbcglobal.net Cc: R-help Subject: Re: [R] Constructing stacked bar plot

Re: [R] Constructing stacked bar plot

2021-06-27 Thread Jeff Reichman
This line medal_data <- medal_counts_ctry %>% filter(medal_counts_ctry$.rows > 100) From: Bert Gunter Sent: Sunday, June 27, 2021 11:32 AM To: reichm...@sbcglobal.net Cc: R-help Subject: Re: [R] Constructing stacked bar plot As has already been pointed out to you (several

Re: [R] Constructing stacked bar plot

2021-06-27 Thread Bert Gunter
As has already been pointed out to you (several times, I believe) -- **HTML code is stripped on this *plain text* list**. Hence, "bolded, red code" is meaningless! Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkele

[R] Constructing stacked bar plot

2021-06-27 Thread Jeff Reichman
R-help Forum I am attempting to create a stacked bar chart but I have to many categories. The following code works and I end up plotting all 134 countries but really only need (say) the top 50 or so. I am trying to figure out how to further filter out the countries with the largest total medal co