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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:33:35+00:00 2026-06-07T22:33:35+00:00

I have made 2 bubble plots called beta and km. I would like to

  • 0

I have made 2 bubble plots called beta and km. I would like to compare the plots side-by-side but the scale_area seem to be different which makes it difficult to visually compare 2 plots based on the size of the bubbles.

If you notice the legends on the plots below, the scales are different. I think it is because highest BiasAM value on the betaGSD5 dataset ~ 64 and kmGSD5 data =100.

How can I manually change the scale_area such that the betaPlot scale match the kmPlot scale?

Also is it possible to manually set the legend breaks? Instead of being automatically generated, can specify I the legend however I want like this?
0-10,
10-30,
30-50,
50-70,
70-100,

100

betaGSD5 data: https://dl.dropbox.com/u/63947093/betaGSD5.csv

kmGSD5 data:
https://dl.dropbox.com/u/63947093/kmGSD5.csv

Here is beta plot code

betaPlot <- ggplot(betaGSD5, aes(N,PctCens,size=BiasAM,label=NULL)) +
  geom_point(colour="red", shape=16) +scale_area(to=c(1,10)) +
  xlab("Sample size") + ylab("Percent censored") +
  xlim(0,100)+ ylim(0,100) +
  theme_bw()+
  opts(
 #legend.position='none',
  panel.grid.minor = theme_blank(),
  panel.background = theme_blank(),
  axis.ticks = theme_blank(),
  axis.title.x=theme_text(face='bold',vjust=0.2, size =12), #size=15 #hjust:move     horizonal, vjust-move verticall
  axis.title.y=theme_text(face='bold',angle=90, vjust=0.2,size =12))
print(betaPlot)

enter image description here

KM plot

kmPlot <- ggplot(kmGSD5, aes(N,PctCens,size=NewBiasAMpct,label=NULL)) +
    geom_point(colour="red", shape=16) +scale_area(to=c(1,10)) +
    xlab("Sample size") + ylab("Percent censored") +
    xlim(0,100)+ ylim(0,100) +
    theme_bw()+
    opts(
      #legend.position='none',
     panel.grid.minor = theme_blank(),
     panel.background = theme_blank(),
     axis.ticks = theme_blank(),
     axis.title.x=theme_text(face='bold',vjust=0.2, size =12), #size=15 #hjust:move       horizonal, vjust-move verticall
     axis.title.y=theme_text(face='bold',angle=90, vjust=0.2,size =12))

 print(kmPlot)

enter image description here

  • 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-06-07T22:33:37+00:00Added an answer on June 7, 2026 at 10:33 pm

    If you want them side-by-side then it’s very easy. Just combine both dataset and use facet_wrap()

    ggplot(dataset, aes(x = N, y = PctCens, size = BiasAM, label = NULL)) +
      geom_point(colour="red", shape = 16) + 
      scale_size_area(limits = c(1, 10), breaks = c(0, 10, 30, 50, 70, 100)) +
      scale_x_continuous("Sample size", limits = c(0, 100)) + 
      scale_y_continuous("Percent censored", limits = c(0, 100)) +
      facet_wrap(~ Method) + 
      theme_bw() +
      theme(
        panel.grid.minor = element_blank(),
        panel.background = element_blank(),
        axis.ticks = element_blank(),
        axis.title.x = element_text(face = 'bold', vjust = 0.2, size = 12),
        axis.title.y = element_text(face = 'bold', angle = 90, vjust = 0.2, size = 12)
      )
    

    enter image description here

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

Sidebar

Related Questions

I have made an iphone application like flip cards in which values of cards
I made of subclass of UIView called Bubble using which i want to draw
I have made a module which is transmitting but I don't know whether the
I have made a cart and the cart has remove item button, but the
I have made my own exception class which derives from runtime_error and is getting
I have made my Actor , but I am unclear on how to take
I have made an mvc3 application with Windows Authentication. Everything works fine but I
I have made a simple timer but in trying to increase the timers speed
I have made one file say a.php. Now I want some thing like if
I have made this controller, which should be used to send emails. I need

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.