Daniel
Daniel

Reputation: 176

RStudio plot() only shows black bars

When I call plot() in RStudio, I only receive black bars (see screenshot).

What could that be?

Screenshot

Upvotes: 0

Views: 832

Answers (2)

shakthydoss
shakthydoss

Reputation: 2631

Clear your data and screen and then try plot() you will get error.

enter image description here

Upvotes: 1

Zbynek
Zbynek

Reputation: 5945

I think calling just plot() should produce an error

> plot()
Error in xy.coords(x, y, xlabel, ylabel, log) : 
  argument "x" is missing, with no default

So do you actually plot something? Perhaps you should try to reset your par options.

.pardefault <- par(no.readonly = T)

or in R studio just remove all plots and try it again

Upvotes: 1

Related Questions