sydneycytometry / tSNEplots

An R script for automatically creating coloured tSNE plots
7 stars 5 forks source link

Polygon edge and font problems #6

Open tomashhurst opened 6 years ago

tomashhurst commented 6 years ago

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 commented 6 years ago

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"