Error when plotting

79 views
Skip to first unread message

Alois Deucid

unread,
Oct 5, 2023, 9:51:12 AM10/5/23
to PRSice
Hi everyone,

I always met the following error when plot, 

Begin plotting
Current Rscript version = 2.3.3
Plotting the quantile plot
Error in f(...) : Graphics API version mismatch
Calls: process_plot ... call_quantile -> plot.quant -> ggsave -> dev -> png_dev -> f
Execution halted


but my R version is the latest one, as follows

R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)


Is anyone can tell me how to solve this problem


Sam Choi

unread,
Oct 5, 2023, 9:21:47 PM10/5/23
to PRSice
if you open you R and do the following, do you get an error?

library(ggplot2)
dat <- data.frame(x=rnorm(10), y = rnorm(10))
ggplot(dat, aes(x=x, y= y))+geom_point()

If it does, then you will need to check if the ggplot2 installation, and the graphic backend of your R installation match.

Sam
Reply all
Reply to author
Forward
0 new messages