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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:27:50+00:00 2026-06-13T21:27:50+00:00

I am interested in displaying large n ordinal scale survey response information across 2

  • 0

I am interested in displaying “large n” ordinal scale survey response information across 2 covariates (consumer attribute and provider attribute). I am using R’s hexbin package. I would like to have the size of the hexagon indicate the number of survey responses and the color of the hexagon to represent the linear mean satisfaction response.

I can’t seem to find documentation indicating how one would do so with either the hexbin or other existing packages.

EDIT for more clarification:

My data is structured like the following:

csr_score pro_score rating
       15        16      8
       17        18     10
       19        12      4

where the length of this data frame is 20,000 rows.

  • 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-13T21:27:51+00:00Added an answer on June 13, 2026 at 9:27 pm

    The key function you’re looking for is hexTapply:

    df <- data.frame (c = runif (1000), p = runif (1000), rating = rnorm (1000))
    h <- hexbin (x=df$c, y = df$p, IDs = TRUE, xbins=5)
    rating.binned <- hexTapply (h, df$rating, FUN=mean)
    
    df.binned <- data.frame (c = h@xcm, p = h@ycm, freq = h@count, rating = rating.binned)
    ggplot (df.binned, aes (x = c, y = p, col = rating, size = freq)) + geom_point () 
    

    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'm quite interested in the Facebook's BigPipe technique for improving user experience when displaying
I'm interested in using the robot framework for test automation. I created a test
I am interested in displaying the following URL in a UIWebView: https://mlogin.yahoo.com/ The trouble
I've been using custom formats for displaying DateTimes as found here: http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx e.g. new
Interested in upgrading JAVA VERSION from JAVA 1.5 to JAVA 1.6 [oracle@server301 /]$ java
I interested to work with data types and file formats. For example I want
im interested how many api calls per second or per minute i can do
I am interested in doing this C code in Java: // sets n's ith
As i am Interested in artificial intelligence, I recently decided to give Lisp a
I'm interested in making ghost preview elements of very complex DOM objects. While I

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.