renjin icon indicating copy to clipboard operation
renjin copied to clipboard

dotchart() does not draw plot colors

Open perNyfelt opened this issue 3 years ago • 2 comments

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 avatar Sep 20 '21 16:09 perNyfelt

In Gnu R 3.6.3: GNUR-dotchart

In Renjin 3.5-beta76 dotchart 6

perNyfelt avatar Sep 20 '21 16:09 perNyfelt

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

perNyfelt avatar Dec 29 '21 10:12 perNyfelt