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

dotchart() does not draw plot colors #534

Open
perNyfelt opened this issue Sep 20, 2021 · 2 comments
Open

dotchart() does not draw plot colors #534

perNyfelt opened this issue Sep 20, 2021 · 2 comments

Comments

@perNyfelt
Copy link
Contributor

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
Copy link
Contributor Author

perNyfelt commented Sep 20, 2021

In Gnu R 3.6.3:
GNUR-dotchart

In Renjin 3.5-beta76
dotchart
6

@perNyfelt
Copy link
Contributor Author

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

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