5

I have this pairs plot

enter image description here

I want to make this plot bigger, but I don't know how.

I've tried

window.options(width = 800, height = 800)

But nothing changes.

Why?

praks5432
  • 6,492
  • 28
  • 81
  • 148

3 Answers3

1

That thing's huge. I would send it to a pdf.

> pdf(file = "yourPlots.pdf")
> plot(...)  # your plot
> dev.off()  # important!

Also, there is an answer to the window sizing issue in this post.

Community
  • 1
  • 1
Rich Scriven
  • 93,629
  • 10
  • 165
  • 233
1

If your goal is to explore the pairwise relationships between your variables, you could consider using the shiny interface from the pairsD3 R package, which provides a way to interact with (potentially large) scatter plot matrices by selecting a few variables at a time.

An example with the iris data set:

install.packages("pairsD3")
require("pairsD3")
shinypairs(iris)

More reference here

jbaums
  • 26,405
  • 5
  • 76
  • 118
Garth
  • 112
  • 10
0

I had the same problem with the pairs() function. Unfortunately, I couldn't find a direct answer to your question.

However, something that could help you is to plot a selected number of variables only. For this, you can either subset the default plot. Refer to this answer I received on a different question.

Alternatively, you can use the pairs2 function which I came across through this post.

Hawklaz
  • 176
  • 2
  • 15