Giter VIP home page Giter VIP logo

Comments (4)

schloerke avatar schloerke commented on August 12, 2024

Thank you for the suggestion!

I added a boolean in the print method for p1.

@ecoRoland, look right?

if (packageVersion("GGally") != "1.0.0") {
  install.packages("GGally")
}
library(GGally)
library(ggplot2)
library(grid)

data(iris)
df <- data.frame(y = rnorm(100))

# updated for new version of ggpairs
p1 <- ggpairs(iris, mapping = aes(colour = Species))
p2 <- ggplot(df, aes(x=1:100, y=y)) + geom_line()

grid.newpage()

pushViewport(viewport(layout=grid.layout(1,2)))
  vp1 <- viewport(
    layout.pos.col=1,
    layout.pos.row=1
  )
  vp2 <- viewport(
    layout.pos.col=2,
    layout.pos.row=1
  )

  pushViewport(vp1)
    # use new boolean
    print(p1, gridNewPage = FALSE)
  popViewport()

  pushViewport(vp2)
    plot(p2, vp = vp2)
  popViewport()

popViewport()

screenshot 2016-01-04 11 04 27

(Since it looks like you're doing complex plots, don't forget to check out the latest version of ggpairs! You can now submit your own custom functions!)

from ggally.

ecoRoland avatar ecoRoland commented on August 12, 2024

Great! Thank you.

from ggally.

schloerke avatar schloerke commented on August 12, 2024

merged into dev.

devtools::install_github("ggobi/ggally@dev")

from ggally.

schloerke avatar schloerke commented on August 12, 2024

on cran now. v1.0.1

from ggally.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.