bedatadriven / renjin

JVM-based interpreter for the R language for the statistical analysis.
https://www.renjin.org
GNU General Public License v2.0
513 stars 82 forks source link

dotchart() does not draw plot colors #534

Open perNyfelt opened 3 years ago

perNyfelt commented 3 years ago

given the following code

png(paste0(getwd(), "/dotchart.png"))
grps <- as.factor(mtcars$cyl)
my_cols <- c("black", "red", "blue")
dotchart(mtcars$mpg, labels = row.names(mtcars),
         groups = grps, gcolor = my_cols,
         color = my_cols[grps],
         cex = 0.6,  pch = 21, pt.cex = 1.5, xlab = "mpg")
dev.off()

The colors are not drawn for the plot characters, only as a faint colorless circle. This code works without problem in GNU R 3.6.3

perNyfelt commented 3 years ago

In Gnu R 3.6.3: GNUR-dotchart

In Renjin 3.5-beta76 dotchart 6

perNyfelt commented 2 years ago

Upon further investigation, only when pch is set to 19, 20, 21 they are not colored, other values for pch are colored properly.