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 7663097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:58:15+00:00 2026-05-31T13:58:15+00:00

I have a semi-melted data frame that looks like this: head(final_melt) Group Source variable

  • 0

I have a semi-melted data frame that looks like this:

head(final_melt)

   Group       Source variable   value
 Control Whole Kidney     MZF1 0.23879
 Control Whole Kidney     MZF1 0.49381
 Control Whole Kidney     MZF1 0.40827
 Control Whole Kidney     MZF1 0.55548
 Control Whole Kidney     MZF1 0.34664
 Control Whole Kidney     MZF1 0.68102

Group has two levels (Control and Disease), source has 4 levels (Whole Kidney, Glomerulus, Tubulointerstitium, and HK-2 + TGF-B). variable also has four levels (TFAP2A, MZF1, YY1, SP1).
I would like to do something like the following in a loop

d = subset(final_melt, final_melt$Source=="Whole Kidney")
qplot(data=d, Group, value, facets=.~variable, geom="boxplot")
pdf("Whole Kideny.pdf")
dev.off()

While I know I could just say facets=Source~variable, the individual plots end up being too small to be informative. So I need to plot one level of the Source factor at a time.
The problem is I can’t even get the pdf() function to work. It creates a file, with the correct name, but when I try to open it adobe says There was an error opening the file, and that it is already open in another application (why I added the dev.off(), but that didn’t seem to do anything).

Any help is appreciated.
Cheers,
Davy.

  • 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-31T13:58:17+00:00Added an answer on May 31, 2026 at 1:58 pm
    1. Open a graphics device (pdf(), png() etc.)
    2. Create and print your ggplot or lattice graphic.
    3. Call dev.off().
    4. …..?
    5. Profit.

    In that order.

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

Sidebar

Related Questions

I have a semi-working example that you can look at. This appears to work
I have a BackgroundWorker that runs a lengthy and semi-complex task. In this BackgroundWorker,
I have a semi-large web application that we run locally and I need to
I'm looking for information extraction libraries where I can have semi structured information that
I have a semi xml formatted file that contains line with the following format:
I have a semi-complicated problem and hoping that someone here will be able to
Currently, I have a semi-dynamic system for my website's pages. head.php has all the
I am learning LINQ and this seems like a fairly simple problem. I have
I have declared my two dimensional array like this. But getting an error due
I have been working with emacs in a semi-full-screen configuration where my frame is

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.