Re: [R] CIE Diagram with wavelengths tick marks

2023-07-20 Thread Tilmann Faul
Hy Ken, Thanks for your answer. Your assumptions are correct, i wan to plot a CIE 1931 2 deg standard. I am aware of the possibility to calculate the tick marks and its orientation by some calculation. But before that, i wanted to ask whether there is something ready out there. Ans thanks for

[R] CIE Diagram with wavelengths tick marks

2023-07-20 Thread Tilmann Faul
Hy, for plotting CIE Diagrams i found Package pavo with function cieplot. That works fine. Now i want to have wavelength tick marks as well around the plotting area. Is there a way to do so, also other ways/Pakages to plot are welcome. My sample Code: library(pavo) coldat2 <- as.data.fram

Re: [R] Date Time, as.POSIXct used locale, strange plot behavior

2021-04-30 Thread Tilmann Faul
Dear Enrico, Thanks a lot, that clarifies the topic for me. Checking the numeric representation i was not aware of. Best Regards Tilmann On 30.04.21 11:17, Enrico Schumann wrote: > On Fri, 30 Apr 2021, Tilmann Faul writes: > >> Dear Jeff, >> >> Thanks for your answer.

Re: [R] Date Time, as.POSIXct used locale, strange plot behavior

2021-04-30 Thread Tilmann Faul
t; What is your TZ environment variable set to? That's what time conversion > defaults to ?DateTimeClasses > > Also, I am not sure CEST is a valid timezone designation... it can be system > dependent, but using one of the elements listed in ?OlsonNames. > > On April 29, 2

[R] Date Time, as.POSIXct used locale, strange plot behavior

2021-04-29 Thread Tilmann Faul
Hy, stumbled over the following problem while plotting DateTime Objects. plot(as.POSIXct(c("2021-04-21 00:00:00", "2021-04-21 23:59:59")), c(0, 1), type='l') arrows(as.POSIXct("2021-04-21 00:00:00", tz="CEST"), 0.3, as.POSIXct("2021-04-21 00:00:00", tz="CEST"), 0.2, l

[R] regex [:digit:] gives diffrent result

2017-02-06 Thread Tilmann Faul
Using R is a grate advantage, thanks for your work. Using regex under R 3.1.1, Debian 8.6 jessy works fine. str_detect("16-03-08", "[:digit:]{2}") [1] TRUE str_detect("16-03-08", "[0-9]{2}") [1] TRUE runing the same code under R 3.3.2 backport, Debian 8.6 jessy gives a different result. This is

[R] use of Encoding()?

2017-02-03 Thread Tilmann Faul
Hey, this is my first question here, so forgive me if i my be clumsy. I want to use Encoding to set the encoding of a character vector, but it doese not seem to work. See example. > x <- "16-03-02" > Encoding(x) [1] "unknown" > Encoding(x) <- "latin1" > Encoding(x) [1] "unknown" Is this intend