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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:38:26+00:00 2026-06-12T05:38:26+00:00

All the examples i find that use plot.im or similar, use matrices that are

  • 0

All the examples i find that use plot.im or similar, use matrices that are squared or almost squared. I am trying to plot pixel matrices with unusual sizes, for example 18×3000. My problem is that since the x/y ratio is so small, i only see a line in my plots. Is there any way to ‘scale’ the Y side of the image?

here is an example http://ubuntuone.com/0WchsKI5hd8YEqtTe7xAno

Thanks!

  • 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-12T05:38:27+00:00Added an answer on June 12, 2026 at 5:38 am

    I am not too familiar with the im objects of spatstat, but guess from the reference manual that either of these should work (where x is your im object).

    # Specify colors
    jet.colors <- colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan",
                          "#7FFF7F", "yellow", "#FF7F00", "red", "#7F0000"))(40)
    # Using base R
    # Note that you might need to transpose `x` to get the orientation right
    image(t(as.matrix(x)), col=jet.colors)
    
    # Using lattice
    library(lattice)
    levelplot(as.matrix(x), aspect="fill", cuts=39, col.regions=jet.colors)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In all the examples that I can find that use a JTextArea , the
I am trying to find rectangle buttons with gloss effect. all examples are relevant
I want to use CKEditor with DynamicData Web Site. The all examples that I
I'm using opengl and trying to create a first person camera. All examples use
All the examples that I can search online use the App.Config mode of specifying
in all the examples I find of Zend_Form the view showing the form corresponds
All the examples I could find of flexible box model show stuff expanding either
In all the examples I can find of usages of HttpClient , it is
All find and execute examples are a variation of this (with /bin/rm ) :
all. Maybe i've not googled enough, but i can't find any example on this

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.