Hi, when trying to run the following code and make a plot, the following error appears. Can someone help me?
Install Tidyverse
library(tidyverse)
##Get map data
data(mpg)
#tables
table(mpg$manufacturer)
prop.table(table(mpg$manufacturer))
##Barcharts
ggplot(mpg,aes(manufacturer)) + geom_bar()
ERROR
Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
polygon edge not found
In addition: There were 50 or more warnings (use warnings() to see the first 50)
pete
August 18, 2019, 7:42pm
2
You might take a look here: https://github.com/tidyverse/ggplot2/issues/2252
Running the most current preview version of Rstudio seems to be a (mostly) fix.
--pete
The plot renders normally with the latest stable release and the preview version as well, Could you give us more information about your setup?
RStudio.Version()$version
#> [1] ‘1.2.1335.1’
library(tidyverse)
ggplot(mpg, aes(x = manufacturer)) +
geom_bar()
Created on 2019-08-18 by the reprex package (v0.3.0)
Hi andresrcs,
Thanks for the quick answer, I´m new to this. By setup you mean what version of Rstudio is installed? If so find it below. Also find a pic attached
RStudio.Version()$version
#> [1] ‘1.2.1335’
.
I´ve tried to update it and it keep showing the same error.
Thanks Pete,
I´ve already unisnstalled Rstudio and installed it again, but it won´t work.
system
Closed
September 9, 2019, 12:08am
6
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.