Skip to content
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

Polygon edge and font problems #6

Open
tomashhurst opened this issue Dec 6, 2017 · 1 comment
Open

Polygon edge and font problems #6

tomashhurst opened this issue Dec 6, 2017 · 1 comment

Comments

@tomashhurst
Copy link
Member

Running this script today I have the following error thrown up:

Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
polygon edge not found
In addition: Warning messages:
1: In grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
no font could be found for family "Arial"
2: In grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
no font could be found for family "Arial"
3: In grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
no font could be found for family "Arial"

Updating ggplot and scales packages didn't fix the issue.

Seems online others have come across this problem where R can't access a font. I tried these options out, but no luck:

https://stackoverflow.com/questions/10581440/error-in-grid-calll-textbounds-as-graphicsannotxlabel-xx-xy-polygon
https://stackoverflow.com/questions/34220883/error-in-grid-calll-textbounds-as-graphicsannotxlabel-xx-xy-polygon

This is another option, but it seems less likely:

https://stackoverflow.com/questions/34220883/error-in-grid-calll-textbounds-as-graphicsannotxlabel-xx-xy-polygon

I'm working on a solution.

=====================

R version = 3.4.0
ggplot2 version = 2.2.1
scales version = 0.4.1

$platform
[1] "x86_64-apple-darwin15.6.0"

$arch
[1] "x86_64"

$os
[1] "darwin15.6.0"

$system
[1] "x86_64, darwin15.6.0"

$status
[1] ""

$major
[1] "3"

$minor
[1] "4.0"

$year
[1] "2017"

$month
[1] "04"

$day
[1] "21"

$svn rev
[1] "72570"

$language
[1] "R"

$version.string
[1] "R version 3.4.0 (2017-04-21)"

$nickname
[1] "You Stupid Darkness"

@tomashhurst
Copy link
Member Author

Works fine on laptop

R = v3.4.0
ggplot2 = v2.2.1
scales = v0.5.0
colorRamps = v2.3 (same version on desktop)
ggthemes = v3.4.0 (same version on desktop)

$platform
[1] "x86_64-apple-darwin13.4.0"

$arch
[1] "x86_64"

$os
[1] "darwin13.4.0"

$system
[1] "x86_64, darwin13.4.0"

$status
[1] ""

$major
[1] "3"

$minor
[1] "2.3"

$year
[1] "2015"

$month
[1] "12"

$day
[1] "10"

$svn rev
[1] "69752"

$language
[1] "R"

$version.string
[1] "R version 3.2.3 (2015-12-10)"

$nickname
[1] "Wooden Christmas-Tree"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant