Error Shadow graphics device error r error 4 R code execution error when trying to use plot and ggplot

0 votes
I updated my R to the latest version of 3.4.2, and when I used plot() or ggplot() to draw graphics, RStudio showed the message:

Error in RStudioGD() : Shadow graphics device error: r error 4 (R code execution error)
Nov 8, 2018 in Data Analytics by Ali
• 11,360 points
2,929 views

1 answer to this question.

0 votes
Its working perfectly fine with R version 3.3.3 both on wondows 10 64 bit and windows 7 32 bit. Try downgrading your R version. I think a lot of people are facing this same issue with this update.
answered Nov 8, 2018 by Maverick
• 10,840 points

Related Questions In Data Analytics

0 votes
1 answer

"Error in if" while trying to execute simple code in R

This caused non-logical data or missing values passed ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 52,350 points
622 views
+1 vote
1 answer

an error occurred" because rows do not match when trying to use lm to perform an ANOVA test

Maybe you could do something like this. ...READ MORE

answered Nov 2, 2018 in Data Analytics by Maverick
• 10,840 points
980 views
0 votes
1 answer

Error saying "Error in df$item : object of type 'closure' is not subsettable" when trying to use arules package

Try replacing ID <- c("A123","A123","A123","A123","B456","B456","B456") item <- c("bread", "butter", ...READ MORE

answered Nov 15, 2018 in Data Analytics by Maverick
• 10,840 points
1,765 views
+1 vote
1 answer
0 votes
1 answer

Creating barplot with standard errors plotted in R

For df1 plot # Group data by when ...READ MORE

answered Nov 12, 2018 in Data Analytics by Maverick
• 10,840 points
1,174 views
+1 vote
1 answer

How to plot pixels in R?

You could use ggplot with the option geom_point(shape = "."). For ...READ MORE

answered Dec 6, 2018 in Data Analytics by Maverick
• 10,840 points
1,452 views
0 votes
1 answer

How do I modify the background grid in ggplot?

You can use the function called background_grid().  This ...READ MORE

answered Dec 7, 2018 in Data Analytics by Maverick
• 10,840 points
973 views
0 votes
1 answer

R Programming: Implement Newton Raphson Algorithm

The problem is that the expressions for f and f1 ...READ MORE

answered Jan 7, 2019 in Data Analytics by Tyrion anex
• 8,700 points
1,601 views
+1 vote
1 answer

"Error in eval(ei, envir) : object 'RDX2' not found" when trying to source the code in R

This is a very common issue that ...READ MORE

answered Oct 30, 2018 in Data Analytics by Maverick
• 10,840 points
5,109 views
+1 vote
1 answer

Error saying cannot open file 'file.pdf' when trying to save a plot in ggplot

You could try adding the following line ...READ MORE

answered Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
7,997 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP