[R] Is it possible to get a downward pointing solid triangle plotting symbol in R?

2023-10-06 Thread Chris Evans via R-help
The reason I am asking is that I would like to mark areas on a plot using geom_polygon() and aes(fill = variable) to fill various polygons forming the background of a plot with different colours. Then I would like to overlay that with points representing direction of change: improved, no reliab

Re: [R] Is it possible to get a downward pointing solid triangle plotting symbol in R?

2023-10-06 Thread Jan van der Laan
Does adding , show.legend = c("color"=TRUE, "fill"=FALSE) to the geom_point do what you want? Best, Jan On 06-10-2023 11:09, Chris Evans via R-help wrote: library(tidyverse) tibble(x = 2:9, y = 2:9, c = c(rep("A", 5), rep("B", 3))) -> tmpTibPoints tibble(x = c(1, 5, 5, 1), y = c(1, 1, 5, 5)

Re: [R] Is it possible to get a downward pointing solid triangle plotting symbol in R?

2023-10-06 Thread Chris Evans via R-help
Sadly, no.  Still shows the same legend with both sets of fill mappings.  I have found a workaround, sadly much longer than yours (!) that does get me what I want but it is a real bodge.  Still interested to see if there is a way to create a downward pointing solid symbol but here is my bodge us

Re: [R] Is it possible to get a downward pointing solid triangle plotting symbol in R?

2023-10-06 Thread Jan van der Laan
You are right, sorry. Another possible solution then: use geom_text instead of geom_point and use a triangle shape as text: ggplot(data = tmpTibPoints, aes(x = x, y = y)) + geom_polygon(data = tmpTibAreas, aes(x = x, y = y, fill = a)) + geom_text(data = tmpTibPoints,

Re: [R] Is it possible to get a downward pointing solid triangle plotting symbol in R?

2023-10-06 Thread Chris Evans via R-help
Thanks again Jan.  That is lovely and clean and I probably should have seen that option. I had anxieties about the portability of using text.  (The function will end up in my https://github.com/cpsyctc/CECPfuns package so I'd like it to be fairly immune to character sets and different platfor

Re: [R] Is it possible to get a downward pointing solid triangle plotting symbol in R?

2023-10-06 Thread Jan van der Laan
Another thing that I considered, but doesn't seem to be supported, is rotating the symbols. I noticed that that does work with text. So you could use a arrow symbol and then specify the angle aesthetic. But this still relies on text and unfortunately there are no arrowlike symbols in ASCII: exc

Re: [R] Is it possible to get a downward pointing solid triangle plotting symbol in R?

2023-10-06 Thread Rui Barradas
Às 10:09 de 06/10/2023, Chris Evans via R-help escreveu: The reason I am asking is that I would like to mark areas on a plot using geom_polygon() and aes(fill = variable) to fill various polygons forming the background of a plot with different colours. Then I would like to overlay that with poi

Re: [R] Is it possible to get a downward pointing solid triangle plotting symbol in R?

2023-10-06 Thread Jeff Newmiller via R-help
Doesn't the outcome of this suggestion still depend on which fonts and output device you are using? ... and that is to some degree still system dependent... On October 6, 2023 7:50:00 AM PDT, Rui Barradas wrote: >Às 10:09 de 06/10/2023, Chris Evans via R-help escreveu: >> The reason I am asking

Re: [R] save(), load(), saveRDS(), and readRDS()

2023-10-06 Thread Micha Silver
Jim always went beyond just posting answers. He helped me along in learning R, always showing solutions together with insightful explanations. His patience and good humor were remarkable. Condolences to his family. On 05/10/2023 1:36, Jim Lemon wrote: Hello, I am very sad to let you know

[R] **Off Topic**, but perhaps of interest to many on this list

2023-10-06 Thread Bert Gunter
** Please Do Not Respond** This is only FYI for those who care to follow the link below. Explanation: Many questions that appear on this list are about how to organize and format data -- unsurprising, as data structures are an essential component of software and algorithm development in general, a

[R] R Gigs

2023-10-06 Thread Fred Kwebiha
Dear Community, Where Can I get Gigs related to R programming language? Thanks in Advance for your help. *Best Regards,* *FRED KWEBIHA* *+256-782-746-154* [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBS

Re: [R] R Gigs

2023-10-06 Thread Bert Gunter
May be an age gap here, but I assume "gigs" = freelance jobs. If so, https://stat.ethz.ch/mailman/listinfo/r-sig-jobs might be useful. As well as an online search in all the usual places. Otherwise, please excuse my out-of-date ignorance. Cheers, Bert On Fri, Oct 6, 2023 at 1:23 PM Fred Kwebiha

Re: [R] R Gigs

2023-10-06 Thread Fred Kwebiha
Thanks Bert. I have Subscribed now to that list. *Best Regards,* *FRED KWEBIHA* *+256-782-746-154* On Fri, Oct 6, 2023 at 11:36 PM Bert Gunter wrote: > May be an age gap here, but I assume "gigs" = freelance jobs. If so, > https://stat.ethz.ch/mailman/listinfo/r-sig-jobs > might be useful. A

Re: [R] R Gigs

2023-10-06 Thread Jeff Newmiller via R-help
That list is _very_ low volume... most employers who would benefit from the skills of an R user don't know that R exists. On October 6, 2023 1:50:17 PM PDT, Fred Kwebiha wrote: >Thanks Bert. > >I have Subscribed now to that list. > >*Best Regards,* > >*FRED KWEBIHA* >*+256-782-746-154* > > >On F