Giter Club home page Giter Club logo

Comments (8)

jolars avatar jolars commented on May 19, 2024 1

eulerr uses grid graphics, not base graphics. Try gridExtra::grid.arrange(plot(fit1), plot(fit2)).

from eulerr.

JudithvanSanten avatar JudithvanSanten commented on May 19, 2024 1

Thank you so much! that works great!

from eulerr.

JudithvanSanten avatar JudithvanSanten commented on May 19, 2024

Dear Jolars,

I have a follow-up question.
I would like to plot several plots next to eachother and each make them have a title.
How can I combine these two codes:

gridExtra::grid.arrange(plot(euler1, quantities = TRUE),plot(euler2, quantities = TRUE))

and

plot1 <- plot(euler1)
grid.arrange(grobs = list(plot1), top = "Title 1")

Kind regards, Judith

from eulerr.

jolars avatar jolars commented on May 19, 2024

Use the main argument in plot.euler(), like so:

library(eulerr)
library(gridExtra)

p1 <- plot(euler(c(A = 1)), main = "Foo")
p2 <- plot(euler(c(B = 1)), main = "Bar")
grid.arrange(p1, p2, ncol = 2)

image

from eulerr.

JudithvanSanten avatar JudithvanSanten commented on May 19, 2024

Thank you. it works now.
before I also used the 'main' argument in 'plot', but it would never show the title, and I found this topic: #27
but now it indeed works.
thank you for the quick reply. have a great day

from eulerr.

vonjd avatar vonjd commented on May 19, 2024

Unfortunately the titles don't show up in this example either... please advise - Thank you

from eulerr.

jolars avatar jolars commented on May 19, 2024

What version of the package are you using @vonjd ?

from eulerr.

vonjd avatar vonjd commented on May 19, 2024

Oops... my bad: it works in v 5.1

from eulerr.

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.