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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:45:16+00:00 2026-06-04T14:45:16+00:00

I have created a image plot for this data: sample p p.1 p.2 p.3

  • 0

I have created a image plot for this data:

sample
         p         p.1         p.2         p.3         p.4
  p    1.0000000  0.24077171 -0.66666667 -0.49009803  0.61237244
  p.1  0.2407717  1.00000000  0.09028939 -0.83444087  0.14744196
  p.2 -0.6666667  0.09028939  1.00000000  0.21004201  0.10206207
  p.3 -0.4900980 -0.83444087  0.21004201  1.00000000 -0.08574929
  p.4  0.6123724  0.14744196  0.10206207 -0.08574929  1.00000000

Using this code:

  image.plot(sample,col=redblue(191), zlim=c(-1,1))

I get this image:

Instead of 0.0 0.2 0.4.. on x and y axes, I want p p.1 p.2…
How do I get that that?
Thank you for your time and consideration?

My heatmap looks like this:

enter image description here

its not symmetric. Can you please fix this?
I am using this code:

shades=c(seq(-1,-0.5,length=64), seq(-0.5,0.5, length=64), seq(0.5,1,length=64))
heatmap.2(sample, dendrogram=’none’, symm=TRUE, Rowv=FALSE, Colv=FALSE, key=TRUE, cexCol=0.7, cexRow=1,scale=”row”, keysize=1, col=redblue(191), breaks=shades)

  • 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-04T14:45:18+00:00Added an answer on June 4, 2026 at 2:45 pm

    Here is a better-ish solution:

     par(mar=c(5,4.5,4,7))
     image(sample, col=rainbow(25), axes=F)  #redblue() doesn't work on my computer.
     axis(2)
     axis(1, at=seq(0,0.8,0.2), labels=rownames(sample))
     image.plot(sample, legend.only=T)
    

    enter image description here

    EDIT: Does the plot below look like what you are looking for?

     sample = cor(matrix(rnorm(400), nrow=20))
     image(cor(matrix(rnorm(400), nrow=20)), axes=F)
     mtext(text=c(paste("country",1:21)), side=2, line=0.3, at=seq(0,1,0.05), las=1, cex=0.8)
     mtext(text=c(paste("country",1:21)), side=1, line=0.3, at=seq(0,1,0.05), las=2, cex=0.8)
     image.plot(sample, legend.only=T)
    

    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 created a DeclarativeServiceLibrary using VS2010 beta 2, Please check this image of
I have created an image plot with ax = imshow() . ax is an
I have created an image slider. This slider appears on every page of my
I just have created Amazon EC2 image and I'm new to this environment. I'm
I have created jquery image slider and it is working good. However i have
I have created a XML image gallery, which displays text in between each slide.
I have created PHP GD image for captcha, file called image.php each time it
I have created a Windows CE6 Image through Platform Builder, and I now want
I have problem with dynamically created image (JavaScript). I want to change the innerHTML
I have created a page with a static image positioned to the ride side

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.