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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:08:45+00:00 2026-05-26T05:08:45+00:00

I am trying to plot two variables where N=700K. The problem is that there

  • 0

I am trying to plot two variables where N=700K. The problem is that there is too much overlap, so that the plot becomes mostly a solid block of black. Is there any way of having a grayscale “cloud” where the darkness of the plot is a function of the number of points in an region? In other words, instead of showing individual points, I want the plot to be a “cloud”, with the more the number of points in a region, the darker that region.

  • 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-26T05:08:46+00:00Added an answer on May 26, 2026 at 5:08 am

    One way to deal with this is with alpha blending, which makes each point slightly transparent. So regions appear darker that have more point plotted on them.

    This is easy to do in ggplot2:

    df <- data.frame(x = rnorm(5000),y=rnorm(5000))
    ggplot(df,aes(x=x,y=y)) + geom_point(alpha = 0.3)
    

    enter image description here

    Another convenient way to deal with this is (and probably more appropriate for the number of points you have) is hexagonal binning:

    ggplot(df,aes(x=x,y=y)) + stat_binhex()
    

    enter image description here

    And there is also regular old rectangular binning (image omitted), which is more like your traditional heatmap:

    ggplot(df,aes(x=x,y=y)) + geom_bin2d()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following data set that I am trying to plot with ggplot2,
I have a plot (sample code pasted below) that I am trying to add
I have one y variable, which I am trying to plot against two related
I'm very new to python. two days. trying to get a plot working with
I'm trying to plot two sets of data wrt to time on the same
I'm trying to plot lines between two or more addresses in Google Maps. The
I am running into trouble trying to compare and plot two files of different
Trying to plot a signal function of 0 and 1, much like the solution
I am trying to plot two data series in an MSChart. I am using
I'm trying to make a plot with pylab/matplotlib, and I have two different sets

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.