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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:10:40+00:00 2026-06-09T13:10:40+00:00

When reading scientific papers I often come across plots where points are jittered without

  • 0

When reading scientific papers I often come across plots where points are jittered without overlaping each other. I suspect many of them are drawn with a program called GraphPad Prism, but surely there must be a way to do the same in R. Although it is not perfect (as with the red points below) I think it looks much better than random jittering.

Jittered points without overlap

If anybody knows how to do this, preferably using some basic function, I’d be very happy to know.

  • 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-09T13:10:41+00:00Added an answer on June 9, 2026 at 1:10 pm

    Here is a ggplot2 solution using geom_dotplot():

    library(ggplot2)
    set.seed(1234)
    
    dat = data.frame(y=c(rpois(20, 4), rpois(20, 1), runif(20, 0, 20)), 
                    category=rep(c("group_1", "group_2", "group_3"), c(20, 20, 20)))
    
    dotplot_1 = ggplot(dat, aes(x=category, y=y)) + 
                geom_dotplot(aes(fill=category), binaxis="y", 
                             stackdir="center", binwidth=0.8) +
                stat_summary(fun.y=median, fun.ymin=median, fun.ymax=median, 
                             geom="crossbar", width=0.7)
    
    ggsave("dotplot_1.png", dotplot_1, width=6, height=4)
    

    enter image description here

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

Sidebar

Related Questions

Reading across difference lineage of CPU created by intel , many questions aroused in
I have a signal of electromyographical data that I am supposed (scientific papers' explicit
Reading the code of many javascript libraries, I see that many developers use to
Reading the design guidelines. I came across a little issue while trying to practice
Reading MSDN (and other sources) about custom report items (CRI) for reporting services 2005.
Reading on another forum I've came across the world of CSS Frameworks. The one
Reading the answers to previous questions regarding SharePoint alerts, I have found many interesting
Reading this fascinating question made me remember a code snippet I stumbled across a
Reading the coding horror, I just came across the FizzBuzz another time. The original
Reading the docs, I'd expect $(#wrap2).remove(.error) to remove all .error elements from #wrap2 .

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.