Re: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx"

2021-08-26 Thread Kai Yang via R-help
Avi -Original Message- From: R-help mailto:r-help-boun...@r-project.org> > On Behalf Of Kai Yang via R-help Sent: Thursday, August 26, 2021 11:53 AM To: R-help Mailing List mailto:r-help@r-project.org> > Subject: [R] ggplot error of "`data` must be a data frame, or other o

Re: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx"

2021-08-26 Thread Avi Gross via R-help
indeed load more packages … From: John C Frain Sent: Thursday, August 26, 2021 3:17 PM To: Kai Yang Cc: r-help@r-project.org; Avi Gross Subject: Re: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx"

Re: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx"

2021-08-26 Thread Andrew Simmons
ta frame or > something it can change into a data.frame. What you gave it probably is an > object meant to represent an EXCEL file or something. You may need to > extract a data.frame (or tibble or ...) from it before passing that to > ggplot. > > Avi > > -Original Message

Re: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx"

2021-08-26 Thread Bill Dunlap
) > > As the message states, it expects that argument to be a data frame or > something it can change into a data.frame. What you gave it probably is an > object meant to represent an EXCEL file or something. You may need to > extract a data.frame (or tibble or ...) from it before passing

Re: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx"

2021-08-26 Thread John C Frain
it can change into a data.frame. What you gave it probably is an > object meant to represent an EXCEL file or something. You may need to > extract a data.frame (or tibble or ...) from it before passing that to > ggplot. > > Avi > > -Original Message- > From: R-help

Re: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx"

2021-08-26 Thread Kai Yang via R-help
m it before passing that to ggplot. Avi -Original Message- From: R-help On Behalf Of Kai Yang via R-help Sent: Thursday, August 26, 2021 11:53 AM To: R-help Mailing List Subject: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3

Re: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx"

2021-08-26 Thread Kai Yang via R-help
om: R-help On Behalf Of Kai Yang via R-help Sent: Thursday, August 26, 2021 11:53 AM To: R-help Mailing List Subject: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx" Hello List, I got an error message when I

Re: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx"

2021-08-26 Thread Avi Gross via R-help
ust 26, 2021 11:53 AM To: R-help Mailing List Subject: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx" Hello List, I got an error message when I submit the code below ggplot(eth, aes(ymax=ymax, ymin=y

Re: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx"

2021-08-26 Thread Andrew Simmons
The class of 'eth' must be incorrect. You could try 'as.data.frame' or possibly 'as.list' to convert 'eth' to an acceptable form. On Thu, Aug 26, 2021, 11:53 Kai Yang via R-help wrote: > Hello List, > I got an error message when I submit the code below > ggplot(eth, aes(ymax=ymax, ymin=ymin, xma

Re: [R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx"

2021-08-26 Thread Thierry Onkelinx via R-help
eth is not a dataframe but of the class rxlsx. You'll need to convert eth into a dataframe. ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie & Kwaliteitszorg /

[R] ggplot error of "`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class rxlsx"

2021-08-26 Thread Kai Yang via R-help
Hello List, I got an error message when I submit the code below ggplot(eth, aes(ymax=ymax, ymin=ymin, xmax=4, xmin=3, fill=ethnicity)) +  geom_rect() +  coord_polar(theta="y")  +  xlim(c(2, 4)   )  Error: `data` must be a data frame, or other object coercible by `fortify()`, not an S3 object wit

Re: [R] Ggplot error

2017-11-08 Thread John Kane via R-help
I get the same result as Eric  withR version 3.4.2 (2017-09-28) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 17.04 It looks like you have "tidyverse" loaded so I tried it with just ggplot2 loaded and with tidyverse loaded.  On Wednesday, November 8, 2017, 4:16:14 AM EST, Eri

Re: [R] Ggplot error

2017-11-08 Thread Zeki ÇATAV
Thanks, I think, I found the problem. It seems to related locale setting. If I start with 'LANG=C R' everything's good. -- Zeki Çatav zekicatav.com On Nov 8, 2017 1:56 PM, "John Kane" wrote: I get the same result as Eric with R version 3.4.2 (2017-09-28) Platform: x86_64-pc-linux-gnu (64-bit)

Re: [R] Ggplot error

2017-11-08 Thread Eric Berger
I was not able to reproduce this problem. I tried two environments 1. Ubuntu 14.04.5 LTS, R version 3.4.2 (same R version as yours) 2. Windows 10, same R version On Wed, Nov 8, 2017 at 9:50 AM, Zeki ÇATAV wrote: > Hello, > I've an error recently. > > ggplot(data = mtcars, aes(x= wt, y= mpg)) +

[R] Ggplot error

2017-11-08 Thread Zeki ÇATAV
Hello, I've an error recently. ggplot(data = mtcars, aes(x= wt, y= mpg)) + geom_line() Error: Found object is not a stat. > sessionInfo() R version 3.4.2 (2017-09-28) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.3 LTS Matrix products: default BLAS: /usr/lib/openblas-base/li