version plot problem

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

version plot problem

PIKAL Petr
Dear all

I have strange problem with plotting data.frame.

test <- structure(list(`Název Analýzy` = c("Kalcinát A", "Kalcinát A",
"Kalcinát A", "Kalcinát A", "Kalcinát A", "Kalcinát A"), Prac = c("TB",
"TB", "TB", "TB", "TB", "TB"), Vzorek = c("6101B", "6101B", "6101B",
"6101B", "6101B", "6101B"), Datum = structure(c(1590624000, 1590624000,
1590537600, 1590537600, 1590537600, 1590537600), class = c("POSIXct",
"POSIXt"), tzone = "UTC"), Časm = structure(c(1590649200, 1590634800,
1590620400, 1590606000, 1590591600, 1590577200), class = c("POSIXct",
"POSIXt"), tzone = "UTC"), Time = structure(c(1590649200, 1590634800,
1590620400, 1590606000, 1590591600, 1590577200), class = c("POSIXct",
"POSIXt"), tzone = "UTC"), Kontrolor = c("BAROTOVÁ", "KRÁTKÁ",
"KRÁTKÁ", "HOLASOVÁ", "HOLASOVÁ", "BAROTOVÁ"), SFM2 = c(239.4,
221, 190.3, 215.7, 241.4, 214.8), SFM1 = c(48.7, 55.6, 52.9,
50.1, 46.6, 54.4), `WI CIE` = c(94.2, 93, 92.4, 94.2, 96.3, 94.4
), `b*` = c(0.8, 1, 1, 0.8, 0.7, 0.8)), row.names = c(NA, 6L), class =
"data.frame")

plot(test)

is OK in R 4.0.0 but throws error in R 3.6.3, which is installed by our IT
> plot(test)
Error in plot.window(...) : need finite 'xlim' values
In addition: Warning messages:
1: In data.matrix(x) : NAs introduced by coercion
2: In data.matrix(x) : NAs introduced by coercion
3: In data.matrix(x) : NAs introduced by coercion
4: In

I know that latest version should be always used but I wonder if this
behavior is specific to 3.6.3 version and the only way is to reinstall R of
if there is some workaround like changing character columns to factor. I
found that it has something to do with character columns.

Best regards.
Petr
*************
platform       x86_64-w64-mingw32                                
arch           x86_64                                            
os             mingw32                                          
system         x86_64, mingw32                                  
status         Under development (unstable)                      
major          4                                                
minor          0.0                                              
year           2020                                              
month          03                                                
day            08                                                
svn rev        77917                                            
language       R                                                
version.string R Under development (unstable) (2020-03-08 r77917)
nickname       Unsuffered Consequences


platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                    
system         x86_64, mingw32            
status                                    
major          3                          
minor          6.3                        
year           2020                        
month          02                          
day            29                          
svn rev        77875                      
language       R                          
version.string R version 3.6.3 (2020-02-29)
nickname       Holding the Windsock        


______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: version plot problem

Rasmus Liland-3
On 2020-06-24 10:03 +0000, PIKAL Petr wrote:
> Dear all
>
> I have strange problem with plotting data.frame.

Dear Petr,

After fending off the iso-8859-2 encoding,
continuing using my regular Unicode encoding,
I was able to reproduce the error 3.6.3
(sessionInfo and version at the end of the
email).

Dropping the columns "Název Analýzy",
"Kontrolor", "Prac", and "Vzorek" indeed
makes the error go away ...

Best,
Rasmus

3.6.3:

        > sessionInfo()
        R version 3.6.3 (2020-02-29)
        Platform: x86_64-pc-linux-gnu (64-bit)
        Running under: Arch Linux
       
        Matrix products: default
        BLAS:   /usr/lib/libblas.so.3.9.0
        LAPACK: /usr/lib/liblapack.so.3.9.0
       
        locale:
         [1] LC_CTYPE=en_GB.utf8       LC_NUMERIC=C
         [3] LC_TIME=en_DK.utf8        LC_COLLATE=en_GB.utf8
         [5] LC_MONETARY=nb_NO.utf8    LC_MESSAGES=en_GB.utf8
         [7] LC_PAPER=nb_NO.utf8       LC_NAME=C
         [9] LC_ADDRESS=C              LC_TELEPHONE=C
        [11] LC_MEASUREMENT=nb_NO.utf8 LC_IDENTIFICATION=C
       
        attached base packages:
        [1] stats     graphics  grDevices utils     datasets  methods   base
       
        loaded via a namespace (and not attached):
        [1] compiler_3.6.3
        > version
                       _
        platform       x86_64-pc-linux-gnu
        arch           x86_64
        os             linux-gnu
        system         x86_64, linux-gnu
        status
        major          3
        minor          6.3
        year           2020
        month          02
        day            29
        svn rev        77875
        language       R
        version.string R version 3.6.3 (2020-02-29)
        nickname       Holding the Windsock

4.0.2:

        > sessionInfo()
        R version 4.0.2 (2020-06-22)
        Platform: x86_64-pc-linux-gnu (64-bit)
        Running under: Arch Linux
       
        Matrix products: default
        BLAS:   /usr/lib/libblas.so.3.9.0
        LAPACK: /usr/lib/liblapack.so.3.9.0
       
        locale:
         [1] LC_CTYPE=en_GB.utf8       LC_NUMERIC=C
         [3] LC_TIME=en_DK.utf8        LC_COLLATE=en_GB.utf8
         [5] LC_MONETARY=nb_NO.utf8    LC_MESSAGES=en_GB.utf8
         [7] LC_PAPER=nb_NO.utf8       LC_NAME=C
         [9] LC_ADDRESS=C              LC_TELEPHONE=C
        [11] LC_MEASUREMENT=nb_NO.utf8 LC_IDENTIFICATION=C
       
        attached base packages:
        [1] stats     graphics  grDevices utils     datasets  methods   base
       
        loaded via a namespace (and not attached):
        [1] compiler_4.0.2
        > version
                       _
        platform       x86_64-pc-linux-gnu
        arch           x86_64
        os             linux-gnu
        system         x86_64, linux-gnu
        status
        major          4
        minor          0.2
        year           2020
        month          06
        day            22
        svn rev        78730
        language       R
        version.string R version 4.0.2 (2020-06-22)
        nickname       Taking Off Again

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: version plot problem

Stephen Ellison
You have four character vectors in your data frame; those return non-finite ranges.

plot(test[sapply(test, class)!="character"])

plots the non-character columns.

S Ellison

________________________________________
From: R-help [[hidden email]] on behalf of Rasmus Liland [[hidden email]]
Sent: 24 June 2020 14:12
To: R-help
Subject: Re: [R] version plot problem

===============
 EXTERNAL EMAIL
===============

On 2020-06-24 10:03 +0000, PIKAL Petr wrote:
> Dear all
>
> I have strange problem with plotting data.frame.

Dear Petr,

After fending off the iso-8859-2 encoding,
continuing using my regular Unicode encoding,
I was able to reproduce the error 3.6.3
(sessionInfo and version at the end of the
email).

Dropping the columns "Název Analýzy",
"Kontrolor", "Prac", and "Vzorek" indeed
makes the error go away ...

Best,
Rasmus

3.6.3:

        > sessionInfo()
        R version 3.6.3 (2020-02-29)
        Platform: x86_64-pc-linux-gnu (64-bit)
        Running under: Arch Linux

        Matrix products: default
        BLAS:   /usr/lib/libblas.so.3.9.0
        LAPACK: /usr/lib/liblapack.so.3.9.0

        locale:
         [1] LC_CTYPE=en_GB.utf8       LC_NUMERIC=C
         [3] LC_TIME=en_DK.utf8        LC_COLLATE=en_GB.utf8
         [5] LC_MONETARY=nb_NO.utf8    LC_MESSAGES=en_GB.utf8
         [7] LC_PAPER=nb_NO.utf8       LC_NAME=C
         [9] LC_ADDRESS=C              LC_TELEPHONE=C
        [11] LC_MEASUREMENT=nb_NO.utf8 LC_IDENTIFICATION=C

        attached base packages:
        [1] stats     graphics  grDevices utils     datasets  methods   base

        loaded via a namespace (and not attached):
        [1] compiler_3.6.3
        > version
                       _
        platform       x86_64-pc-linux-gnu
        arch           x86_64
        os             linux-gnu
        system         x86_64, linux-gnu
        status
        major          3
        minor          6.3
        year           2020
        month          02
        day            29
        svn rev        77875
        language       R
        version.string R version 3.6.3 (2020-02-29)
        nickname       Holding the Windsock

4.0.2:

        > sessionInfo()
        R version 4.0.2 (2020-06-22)
        Platform: x86_64-pc-linux-gnu (64-bit)
        Running under: Arch Linux

        Matrix products: default
        BLAS:   /usr/lib/libblas.so.3.9.0
        LAPACK: /usr/lib/liblapack.so.3.9.0

        locale:
         [1] LC_CTYPE=en_GB.utf8       LC_NUMERIC=C
         [3] LC_TIME=en_DK.utf8        LC_COLLATE=en_GB.utf8
         [5] LC_MONETARY=nb_NO.utf8    LC_MESSAGES=en_GB.utf8
         [7] LC_PAPER=nb_NO.utf8       LC_NAME=C
         [9] LC_ADDRESS=C              LC_TELEPHONE=C
        [11] LC_MEASUREMENT=nb_NO.utf8 LC_IDENTIFICATION=C

        attached base packages:
        [1] stats     graphics  grDevices utils     datasets  methods   base

        loaded via a namespace (and not attached):
        [1] compiler_4.0.2
        > version
                       _
        platform       x86_64-pc-linux-gnu
        arch           x86_64
        os             linux-gnu
        system         x86_64, linux-gnu
        status
        major          4
        minor          0.2
        year           2020
        month          06
        day            22
        svn rev        78730
        language       R
        version.string R version 4.0.2 (2020-06-22)
        nickname       Taking Off Again

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


==============================================================================================
WARNING - EXTERNAL: This email originated from outside of LGC. Do not click any links or open any attachments
unless you trust the sender and know that the content is safe
==============================================================================================


*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: version plot problem

PIKAL Petr
Thanks.

I try to spread R to some other people and I use 4.0.0 - version.string R
Under development (unstable) (2020-03-08 r77917) nickname       Unsuffered
Consequences  whereas they use R 3.6.3
version.string R version 3.6.3 (2020-02-29) nickname       Holding the
Windsock

With artificial data frame both behave with the same error
dat <- data.frame(a=letters[1:5], b=1:5)
dat$a <- as.character(dat$a)
plot(dat)
Error in plot.window(...) : need finite 'xlim' values
In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In min(x) : no non-missing arguments to min; returning Inf
3: In max(x) : no non-missing arguments to max; returning -Inf

So far so good.

But with original data with **character** columns
dput(head(mok))
mok <- structure(list(a = c("Kalcinát A", "Kalcinát A", "Kalcinát A",
"Kalcinát A", "Kalcinát A", "Kalcinát A"), b = c("TB", "TB",
"TB", "TB", "TB", "TB"), c = c("6101B", "6101B", "6101B", "6101B",
"6101B", "6101B"), d = structure(c(1590624000, 1590624000, 1590537600,
1590537600, 1590537600, 1590537600), class = c("POSIXct", "POSIXt"
), tzone = "UTC"), e = structure(c(1590649200, 1590634800, 1590620400,
1590606000, 1590591600, 1590577200), class = c("POSIXct", "POSIXt"
), tzone = "UTC"), f = structure(c(1590649200, 1590634800, 1590620400,
1590606000, 1590591600, 1590577200), class = c("POSIXct", "POSIXt"
), tzone = "UTC"), g = c("BAROTOVÁ", "KRÁTKÁ", "KRÁTKÁ", "HOLASOVÁ",
"HOLASOVÁ", "BAROTOVÁ"), h = c(239.4, 221, 190.3, 215.7, 241.4,
214.8), i = c(48.7, 55.6, 52.9, 50.1, 46.6, 54.4), j = c(94.2,
93, 92.4, 94.2, 96.3, 94.4), k = c(0.8, 1, 1, 0.8, 0.7, 0.8)), row.names =
c(NA,
6L), class = "data.frame")

PLOT WORKS in R 400 but not in R 363??????

plot(mok)

Why it works in R400??? How should I explain it?

Best regards.
Petr

> -----Original Message-----
> From: R-help <[hidden email]> On Behalf Of Stephen Ellison
> Sent: Wednesday, June 24, 2020 6:44 PM
> To: Rasmus Liland <[hidden email]>; R-help <[hidden email]>
> Subject: Re: [R] version plot problem
>
> You have four character vectors in your data frame; those return
non-finite

> ranges.
>
> plot(test[sapply(test, class)!="character"])
>
> plots the non-character columns.
>
> S Ellison
>
> ________________________________________
> From: R-help [[hidden email]] on behalf of Rasmus Liland
> [[hidden email]]
> Sent: 24 June 2020 14:12
> To: R-help
> Subject: Re: [R] version plot problem
>
> ===============
>  EXTERNAL EMAIL
> ===============
>
> On 2020-06-24 10:03 +0000, PIKAL Petr wrote:
> > Dear all
> >
> > I have strange problem with plotting data.frame.
>
> Dear Petr,
>
> After fending off the iso-8859-2 encoding, continuing using my regular
> Unicode encoding, I was able to reproduce the error 3.6.3 (sessionInfo and
> version at the end of the email).
>
> Dropping the columns "Název Analýzy",
> "Kontrolor", "Prac", and "Vzorek" indeed makes the error go away ...
>
> Best,
> Rasmus
>
> 3.6.3:
>
>         > sessionInfo()
>         R version 3.6.3 (2020-02-29)
>         Platform: x86_64-pc-linux-gnu (64-bit)
>         Running under: Arch Linux
>
>         Matrix products: default
>         BLAS:   /usr/lib/libblas.so.3.9.0
>         LAPACK: /usr/lib/liblapack.so.3.9.0
>
>         locale:
>          [1] LC_CTYPE=en_GB.utf8       LC_NUMERIC=C
>          [3] LC_TIME=en_DK.utf8        LC_COLLATE=en_GB.utf8
>          [5] LC_MONETARY=nb_NO.utf8    LC_MESSAGES=en_GB.utf8
>          [7] LC_PAPER=nb_NO.utf8       LC_NAME=C
>          [9] LC_ADDRESS=C              LC_TELEPHONE=C
>         [11] LC_MEASUREMENT=nb_NO.utf8 LC_IDENTIFICATION=C
>
>         attached base packages:
>         [1] stats     graphics  grDevices utils     datasets  methods
base

>
>         loaded via a namespace (and not attached):
>         [1] compiler_3.6.3
>         > version
>                        _
>         platform       x86_64-pc-linux-gnu
>         arch           x86_64
>         os             linux-gnu
>         system         x86_64, linux-gnu
>         status
>         major          3
>         minor          6.3
>         year           2020
>         month          02
>         day            29
>         svn rev        77875
>         language       R
>         version.string R version 3.6.3 (2020-02-29)
>         nickname       Holding the Windsock
>
> 4.0.2:
>
>         > sessionInfo()
>         R version 4.0.2 (2020-06-22)
>         Platform: x86_64-pc-linux-gnu (64-bit)
>         Running under: Arch Linux
>
>         Matrix products: default
>         BLAS:   /usr/lib/libblas.so.3.9.0
>         LAPACK: /usr/lib/liblapack.so.3.9.0
>
>         locale:
>          [1] LC_CTYPE=en_GB.utf8       LC_NUMERIC=C
>          [3] LC_TIME=en_DK.utf8        LC_COLLATE=en_GB.utf8
>          [5] LC_MONETARY=nb_NO.utf8    LC_MESSAGES=en_GB.utf8
>          [7] LC_PAPER=nb_NO.utf8       LC_NAME=C
>          [9] LC_ADDRESS=C              LC_TELEPHONE=C
>         [11] LC_MEASUREMENT=nb_NO.utf8 LC_IDENTIFICATION=C
>
>         attached base packages:
>         [1] stats     graphics  grDevices utils     datasets  methods
base

>
>         loaded via a namespace (and not attached):
>         [1] compiler_4.0.2
>         > version
>                        _
>         platform       x86_64-pc-linux-gnu
>         arch           x86_64
>         os             linux-gnu
>         system         x86_64, linux-gnu
>         status
>         major          4
>         minor          0.2
>         year           2020
>         month          06
>         day            22
>         svn rev        78730
>         language       R
>         version.string R version 4.0.2 (2020-06-22)
>         nickname       Taking Off Again
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
> =================================================================
> =============================
> WARNING - EXTERNAL: This email originated from outside of LGC. Do not
click
> any links or open any attachments unless you trust the sender and know
that

> the content is safe
> =================================================================
> =============================
>
>
> *****************************************************************
> **
> This email and any attachments are confidential. Any use...{{dropped:8}}
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: version plot problem

Martin Maechler
>>>>> PIKAL Petr
>>>>>     on Thu, 25 Jun 2020 14:45:09 +0000 writes:

    > Thanks.
    > I try to spread R to some other people and I use 4.0.0 - version.string R
    > Under development (unstable) (2020-03-08 r77917) nickname       Unsuffered
    > Consequences  whereas they use R 3.6.3
    > version.string R version 3.6.3 (2020-02-29) nickname       Holding the
    > Windsock

    > With artificial data frame both behave with the same error
    > dat <- data.frame(a=letters[1:5], b=1:5)
    > dat$a <- as.character(dat$a)
    > plot(dat)
    > Error in plot.window(...) : need finite 'xlim' values
    > In addition: Warning messages:
    > 1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
    > 2: In min(x) : no non-missing arguments to min; returning Inf
    > 3: In max(x) : no non-missing arguments to max; returning -Inf

    > So far so good.

    > But with original data with **character** columns
    > dput(head(mok))
    > mok <- structure(list(a = c("Kalcinát A", "Kalcinát A", "Kalcinát A",
    > "Kalcinát A", "Kalcinát A", "Kalcinát A"), b = c("TB", "TB",
    > "TB", "TB", "TB", "TB"), c = c("6101B", "6101B", "6101B", "6101B",
    > "6101B", "6101B"), d = structure(c(1590624000, 1590624000, 1590537600,
    > 1590537600, 1590537600, 1590537600), class = c("POSIXct", "POSIXt"
    > ), tzone = "UTC"), e = structure(c(1590649200, 1590634800, 1590620400,
    > 1590606000, 1590591600, 1590577200), class = c("POSIXct", "POSIXt"
    > ), tzone = "UTC"), f = structure(c(1590649200, 1590634800, 1590620400,
    > 1590606000, 1590591600, 1590577200), class = c("POSIXct", "POSIXt"
    > ), tzone = "UTC"), g = c("BAROTOVÁ", "KRÁTKÁ", "KRÁTKÁ", "HOLASOVÁ",
    > "HOLASOVÁ", "BAROTOVÁ"), h = c(239.4, 221, 190.3, 215.7, 241.4,
    > 214.8), i = c(48.7, 55.6, 52.9, 50.1, 46.6, 54.4), j = c(94.2,
    > 93, 92.4, 94.2, 96.3, 94.4), k = c(0.8, 1, 1, 0.8, 0.7, 0.8)), row.names =
    > c(NA,
    > 6L), class = "data.frame")

    > PLOT WORKS in R 400 but not in R 363??????

    > plot(mok)

    > Why it works in R400??? How should I explain it?

(it's  "R 4.0.0" , here spaces are relevant I think)

Well, new versions of R  are always better than previous ones
(even though, yes, rarely sometimes bugs are introduced).

and you have heard that  R 4.0.0  came with *many* new features, right ?

In this case the long NEW FEATURES section in the
NEWS | NEWS.pdf | NEWS.html files contained the entry

    • data.matrix() now converts character columns to factors and from
      this to integers.

and this contains the answer to your question, as

  plot(mok)  |->  plot.data.frame(mok)  |->  pairs(data.matrix(mok))

and  data.matrix(mok) in R 3.6.3 gives 4 warnings and ends in a
character matrix.

--

And yes, the above new feature was related and made particularly
sense with the important user-visible  stringsAsFactors  change
in R 4.0.0; see also the corresponding R blog (by Kurt Hornik) :

  https://developer.r-project.org/Blog/public/2020/02/16/stringsasfactors/


Martin Maechler
R Core team  and  ETH Zurich

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: version plot problem

PIKAL Petr
Hallo Martin

Yes I am aware of gradual improvement of R and also many new features of version 4.0.x. I have to be more aware of fact that some code could work in one version and give error in another, especially when using different major versions.

Probably best option is to persuade IT department to reinstall the newest R version on all affected PCs.

Thank you for explanation.

Best regards
Petr

> -----Original Message-----
> From: Martin Maechler <[hidden email]>
> Sent: Tuesday, June 30, 2020 11:35 AM
> To: PIKAL Petr <[hidden email]>
> Cc: Stephen Ellison <[hidden email]>; Rasmus Liland
> <[hidden email]>; R-help <[hidden email]>
> Subject: Re: [R] version plot problem
>
> >>>>> PIKAL Petr
> >>>>>     on Thu, 25 Jun 2020 14:45:09 +0000 writes:
>
>     > Thanks.
>     > I try to spread R to some other people and I use 4.0.0 - version.string R
>     > Under development (unstable) (2020-03-08 r77917) nickname
> Unsuffered
>     > Consequences  whereas they use R 3.6.3
>     > version.string R version 3.6.3 (2020-02-29) nickname       Holding the
>     > Windsock
>
>     > With artificial data frame both behave with the same error
>     > dat <- data.frame(a=letters[1:5], b=1:5)
>     > dat$a <- as.character(dat$a)
>     > plot(dat)
>     > Error in plot.window(...) : need finite 'xlim' values
>     > In addition: Warning messages:
>     > 1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
>     > 2: In min(x) : no non-missing arguments to min; returning Inf
>     > 3: In max(x) : no non-missing arguments to max; returning -Inf
>
>     > So far so good.
>
>     > But with original data with **character** columns
>     > dput(head(mok))
>     > mok <- structure(list(a = c("Kalcinát A", "Kalcinát A", "Kalcinát A",
>     > "Kalcinát A", "Kalcinát A", "Kalcinát A"), b = c("TB", "TB",
>     > "TB", "TB", "TB", "TB"), c = c("6101B", "6101B", "6101B", "6101B",
>     > "6101B", "6101B"), d = structure(c(1590624000, 1590624000, 1590537600,
>     > 1590537600, 1590537600, 1590537600), class = c("POSIXct", "POSIXt"
>     > ), tzone = "UTC"), e = structure(c(1590649200, 1590634800, 1590620400,
>     > 1590606000, 1590591600, 1590577200), class = c("POSIXct", "POSIXt"
>     > ), tzone = "UTC"), f = structure(c(1590649200, 1590634800, 1590620400,
>     > 1590606000, 1590591600, 1590577200), class = c("POSIXct", "POSIXt"
>     > ), tzone = "UTC"), g = c("BAROTOVÁ", "KRÁTKÁ", "KRÁTKÁ", "HOLASOVÁ",
>     > "HOLASOVÁ", "BAROTOVÁ"), h = c(239.4, 221, 190.3, 215.7, 241.4,
>     > 214.8), i = c(48.7, 55.6, 52.9, 50.1, 46.6, 54.4), j = c(94.2,
>     > 93, 92.4, 94.2, 96.3, 94.4), k = c(0.8, 1, 1, 0.8, 0.7, 0.8)), row.names =
>     > c(NA,
>     > 6L), class = "data.frame")
>
>     > PLOT WORKS in R 400 but not in R 363??????
>
>     > plot(mok)
>
>     > Why it works in R400??? How should I explain it?
>
> (it's  "R 4.0.0" , here spaces are relevant I think)
>
> Well, new versions of R  are always better than previous ones (even though,
> yes, rarely sometimes bugs are introduced).
>
> and you have heard that  R 4.0.0  came with *many* new features, right ?
>
> In this case the long NEW FEATURES section in the NEWS | NEWS.pdf |
> NEWS.html files contained the entry
>
>     • data.matrix() now converts character columns to factors and from
>       this to integers.
>
> and this contains the answer to your question, as
>
>   plot(mok)  |->  plot.data.frame(mok)  |->  pairs(data.matrix(mok))
>
> and  data.matrix(mok) in R 3.6.3 gives 4 warnings and ends in a character
> matrix.
>
> --
>
> And yes, the above new feature was related and made particularly sense with
> the important user-visible  stringsAsFactors  change in R 4.0.0; see also the
> corresponding R blog (by Kurt Hornik) :
>
>   https://developer.r-project.org/Blog/public/2020/02/16/stringsasfactors/
>
>
> Martin Maechler
> R Core team  and  ETH Zurich

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.