-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
geom_waffle() not found #76
Comments
did you install from git/github?
…On Tue, Apr 21, 2020 at 10:34 PM vcollier13 ***@***.***> wrote:
library(tibble)
library(waffle)
library(ggplot2)
After installing waffle and dependent libraries, I tried using the sample
code below but receive error: "Error in geom_waffle(color = "white", size =
1.125, n_rows = 6) :
could not find function "geom_waffle""
##############
tibble(
parts = factor(rep(month.abb[1:3], 3), levels=month.abb[1:3]),
values = c(10, 20, 30, 6, 14, 40, 30, 20, 10),
fct = c(rep("Thing 1", 3), rep("Thing 2", 3), rep("Thing 3", 3))
) -> xdf
ggplot(xdf, aes(fill=parts, values=values)) +
geom_waffle(color = "white", size=1.125, n_rows = 6) +
facet_wrap(~fct, ncol=1) +
scale_x_discrete(expand=c(0,0)) +
scale_y_discrete(expand=c(0,0)) +
ggthemes::scale_fill_tableau(name=NULL) +
coord_equal() +
labs(
title = "Faceted Waffle Geoms"
) +
theme_ipsum_rc(grid="") +
theme_enhance_waffle()
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#76>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD4PNQHWDY3A6GHRKWDE43RNZJRRANCNFSM4MNYZYGA>
.
|
Hi Bob,
While I initially tried installing from CRAN, I also did try installing from github.
Thanks,
V
________________________________
From: boB Rudis <[email protected]>
Sent: Monday, April 27, 2020 6:52 PM
To: hrbrmstr/waffle <[email protected]>
Cc: Vanessa Collier <[email protected]>; Author <[email protected]>
Subject: Re: [hrbrmstr/waffle] geom_waffle() not found (#76)
did you install from git/github?
On Tue, Apr 21, 2020 at 10:34 PM vcollier13 ***@***.***> wrote:
library(tibble)
library(waffle)
library(ggplot2)
After installing waffle and dependent libraries, I tried using the sample
code below but receive error: "Error in geom_waffle(color = "white", size =
1.125, n_rows = 6) :
could not find function "geom_waffle""
##############
tibble(
parts = factor(rep(month.abb[1:3], 3), levels=month.abb[1:3]),
values = c(10, 20, 30, 6, 14, 40, 30, 20, 10),
fct = c(rep("Thing 1", 3), rep("Thing 2", 3), rep("Thing 3", 3))
) -> xdf
ggplot(xdf, aes(fill=parts, values=values)) +
geom_waffle(color = "white", size=1.125, n_rows = 6) +
facet_wrap(~fct, ncol=1) +
scale_x_discrete(expand=c(0,0)) +
scale_y_discrete(expand=c(0,0)) +
ggthemes::scale_fill_tableau(name=NULL) +
coord_equal() +
labs(
title = "Faceted Waffle Geoms"
) +
theme_ipsum_rc(grid="") +
theme_enhance_waffle()
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#76>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD4PNQHWDY3A6GHRKWDE43RNZJRRANCNFSM4MNYZYGA>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#76 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANJM2AA6O5ISH63N23ZF56DROYZFDANCNFSM4MNYZYGA>.
|
Please provide your session info. I use |
Hi,
I just reinstalled RStudio and my profile, it seems to work now so you can close this out, thanks!
Vanessa
…________________________________
From: boB Rudis <[email protected]>
Sent: Tuesday, April 28, 2020 10:16 AM
To: hrbrmstr/waffle <[email protected]>
Cc: Vanessa Collier <[email protected]>; Author <[email protected]>
Subject: Re: [hrbrmstr/waffle] geom_waffle() not found (#76)
Please provide your session info. I use geom_waffle() weekly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#76 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANJM2AHATUZOL4NKBAZMPJDRO4FP5ANCNFSM4MNYZYGA>.
|
I, too, am getting an error "could not find function "geom_waffle"". Here is my session info. Thank you for any guidance you offer: R version 4.0.0 (2020-04-24) Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
Hi there, I got the same error,
|
Thanks! The problem disappeared after I reinstalled rStudio.
|
could not find function "geom_waffle" |
it's in the github version @Rahulvks |
Hello, I am receiving the same problem. I have installed waffle from github and reinstalled Rstudio to no avail... please help!
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
I literally just (now) did this: Sys.time()
## [1] "2020-12-04 15:50:24 EST"
remotes::install_github("hrbrmstr/waffle")
## Using github PAT from envvar GITHUB_PAT
## Downloading GitHub repo hrbrmstr/waffle@HEAD
## ✓ checking for file ‘/private/var/folders/bx/41ph1lms22q9mc83j5tx4bg80000gn/T/Rtmp1Bm1wX/remotesf84647eba317/hrbrmstr-waffle-3f61463/DESCRIPTION’ ...
## ─ preparing ‘waffle’:
## ✓ checking DESCRIPTION meta-information ...
## ─ checking for LF line-endings in source and make files and shell scripts
## ─ checking for empty or unneeded directories
## ─ building ‘waffle_1.0.1.tar.gz’
##
## * installing *source* package ‘waffle’ ...
## ** using staged installation
## ** R
## ** inst
## ** byte-compile and prepare package for lazy loading
## ** help
## *** installing help indices
## ** building package indices
## ** installing vignettes
## ** testing if installed package can be loaded from temporary location
## ** testing if installed package can be loaded from final location
## ** testing if installed package keeps a record of temporary installation path
## * DONE (waffle)
library(waffle)
## Loading required package: ggplot2
?geom_waffle I am at a loss as to what might be going wrong in the steps folks are taking. |
Boom! thanks @hrbrmstr .. must have been the call to install via the command line which prompted a number of package updates..anyway, all working now. Much appreciated. |
Doing |
That's really worked! |
Doing remotes::install_github("hrbrmstr/waffle") and restarting the R session did it for me. worked for me
|
Also ran into this; there was an additional issue with the remotes::install_github (probably due to corproate firewall) so crossposting it here for reference: |
None of the options here worked for me, even after updating R, Rstudio, using the direct install from github, etc... However directly calling the function from the package did the trick! Use waffle::geom_waffle() |
library(tibble)
library(waffle)
library(ggplot2)
After installing waffle and dependent libraries, I tried using the sample code below but receive error: "Error in geom_waffle(color = "white", size = 1.125, n_rows = 6) :
could not find function "geom_waffle""
##############
tibble(
parts = factor(rep(month.abb[1:3], 3), levels=month.abb[1:3]),
values = c(10, 20, 30, 6, 14, 40, 30, 20, 10),
fct = c(rep("Thing 1", 3), rep("Thing 2", 3), rep("Thing 3", 3))
) -> xdf
ggplot(xdf, aes(fill=parts, values=values)) +
geom_waffle(color = "white", size=1.125, n_rows = 6) +
facet_wrap(~fct, ncol=1) +
scale_x_discrete(expand=c(0,0)) +
scale_y_discrete(expand=c(0,0)) +
ggthemes::scale_fill_tableau(name=NULL) +
coord_equal() +
labs(
title = "Faceted Waffle Geoms"
) +
theme_ipsum_rc(grid="") +
theme_enhance_waffle()
The text was updated successfully, but these errors were encountered: