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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:31:44+00:00 2026-05-17T21:31:44+00:00

I have results from a survey. I am trying to create a graphic displaying

  • 0

I have results from a survey. I am trying to create a graphic displaying the relationship of two variables: “Q1” and “Q9.1”. “Q1” is the independent and “Q9.1” is the dependent. Both variables have responses from like scale questions: -2,-1,0,1,2. A typical plot places the answers on top of each other – not very interesting or informative. I was thinking that hexbin would be the way to go. The data is in lpp.
I have not been able to use “Q1” and “Q9.1” for x and y. However:

> is.numeric("Q1")
[1] FALSE
q1.num <- as.numeric("Q1")
Warning message:
NAs introduced by coercion 

The values for Q1 are (hundreds of instances of): -2,-1,0,1,2

How can I make a hexbin graph with this data?
Is there another graph I should consider?

Error messages so far:

Warning messages:
1: In xy.coords(x, y, xl, yl) : NAs introduced by coercion
2: In xy.coords(x, y, xl, yl) : NAs introduced by coercion
3: In min(x) : no non-missing arguments to min; returning Inf
4: In max(x) : no non-missing arguments to max; returning -Inf
5: In min(x) : no non-missing arguments to min; returning Inf
6: In max(x) : no non-missing arguments to max; returning -Inf
  • 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-17T21:31:45+00:00Added an answer on May 17, 2026 at 9:31 pm

    How about taking a slightly different approach? How about thinking of your responses as factors rather than numbers? You could use something like this, then, to get a potentially useful representation of your data:

    # Simulate data for testing purposes
    q1 = sample(c(-2,-1,0,1,2),100,replace=TRUE)
    q9 = sample(c(-2,-1,0,1,2),100,replace=TRUE)
    dat = data.frame(q1=factor(q1),q9=factor(q9))
    library(ggplot2)
    # generate stacked barchart
    ggplot(dat,aes(q1,fill=q9)) + geom_bar()
    

    You may want to switch q1 and q9 above, depending on the view of the data that you want.

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

Sidebar

Related Questions

I have two results from a data set. I want to add both results
So I have this survey that I am pulling results from and I have
I'm trying to build a table of results from an array. I currently have
I have 498 text files resulting from WebScraping results from a form on a
I have a quick question about fetching results from a weakly typed cursor and
I have need to return multiple results from a subquery and have been unable
I have some codes read the query results from sqlite: while (sqlite3_step(statement) == SQLITE_ROW)
I have a form that shows results from a database query, these results can
I have a PHP page that is bringing in results from a Database and
I am looking to load results from the server for UITableView while I have

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.