Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3943010
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:43:52+00:00 2026-05-20T00:43:52+00:00

Recently I read about the grid graphing system in R. It is very flexible

  • 0

Recently I read about the grid graphing system in R. It is very flexible and with its mastery one should be able to make very sophisticated graphs. However I have not found any good place that will allow me to plot a graph that is also re-sizable? The question is as follows: How do you use grid graphing system in R so that the final output is actually resizable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T00:43:53+00:00Added an answer on May 20, 2026 at 12:43 am

    One way of doing so is not using the grip graphing system directly, but use the lattice interface to it. The lattice package comes installed with R as far as I know, and forms a very flexible interface to the underlying Trellis graphs, which are grid-based graphs. Lattice also allows you to manipulate the grid directly, so in fact for most sophisticated graphs that will be all you need.

    If you really are going to work with the grid graphing system itself, you have to use the correct coordinate system for it to be scalable. Either “native”, “npc” (Normalized Parent Coordinates) or “snpc” (Square Normalized Parent Coordinates) allow you to rescale a figure, as they give the coordinates relative to the size (or one aspect of it) of the current viewport.

    In order to make full use of these, make sure you understand the concept of viewports very well. I have to admit that I still have a lot to learn about it. If you really want to get on with it, I can suggest the book R Graphics from Paul Murrell

    Take a closer look at chapter 5 of that book. You can also learn a lot from the R code of the examples, which can also be found on this page

    To give you one :

    grid.circle(x=seq(0.1, 0.9, length=100), 
                y=0.5 + 0.4*sin(seq(0, 2*pi, length=100)),
                r=abs(0.1*cos(seq(0, 2*pi, length=100))))
    

    Perfectly scaleable. If you look at the help pages of grid.circle, you’ll find the default.units="npc" option. That’s where in this case the correct coordinate system is set. Compare to

    grid.circle(x=seq(0.1, 0.9, length=100), 
                y=0.5 + 0.4*sin(seq(0, 2*pi, length=100)),
                r=abs(0.1*cos(seq(0, 2*pi, length=100))),
                default.units="inch")
    

    which is not scaleable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently I have read about hash-tables in a very famous book Introduction to Algorithms
I recently read a question about a simple, secure API authentication system and see
I have recently read about how cursors should be avoided. Well, I would like
I recently read about Dynamic Creation as one of the design pattern in Cocoa.
I thought I read about a C standard library function recently that was able
I recently read a question on here about static and dynamic linking, which reminded
I have read about the push technologies recently. Using it real-time data streaming is
I've recently heard about Qt and read about how fun it is to develop
Recently i read an article is about prevent brute-force attack. It said that automatically
Recently I have read a lot about different NoSQL databases and how they are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.