Displaying 20 results from an estimated 30000 matches similar to: "image plot"
2013 Oct 25
1
add a color band
Hi all,
I would like to ask your help to add a color band (Ι am not sure regarding the right term, this color band at the right of the plot "describing" values with their corresponding color.
For now I have only this code
test<-matrix(data=runif(10000),nrow=100)
plot(test,axes="FALSE")
axis(1,at=c(0,1),labels=c("a","b")) #
but I would like to add
2012 Jun 14
2
density plot on a log scale
I'm working with a large dataset - large enough that when I do a scatter plot
the points all blur together, so I want to plot their density by color - a
heat map or something like that. I've used smoothScatter for tasks like
this, but the problem is that my current dataset really only looks good on a
log-log scale. When I do the following command
smoothScatter(
data,
2011 Apr 03
3
Error in "color2D.matplot" : "Error in plot.new() : figure margins too large"
Hi,
I am using color2D.matplot (...) function of "plotrix" package. I used
a matrix of size around 20*20
However, apparently it failed to visualize the matrix and gave the
following exception, which I don't have any idea about possible source
of this error.
"Error in plot.new() : figure margins too large"
It would be appreciated if someone points me to the right origin
2016 Apr 22
2
clock24.plot/radial plot
Kind Experts,
Many thanks for your guide. I have tried to figure out something that
can help me plot my own data using the examples you referred me to. I
copied part of the code as:
set.seed(44)
N=500
events <- as.POSIXct("2011-01-01", tz="GMT") +
days(floor(365*runif(N))) +
hours(floor(24*rnorm(N))) + # using rnorm here
2011 Jul 29
2
problems with image.plot()
Hi all,
I used image.plot() to create a heat map of a matrix:
as.matrix(read.table("Matrix.txt", sep="\t"))->x
HeatBrk<-seq(5,25,2.5)
MyCol= gray((7:0)/7)
library(fields)
image.plot(x, col=MyCol, breaks=HeatBrk, legend.shrink=0.3)
dev.copy(device=pdf, file="HEAT4!.pdf", height=8, width=8)
dev.off()
There are a few things that I would like to do that I
2008 Jun 17
2
color2D.matplot axis names
Hi,
I finally came up with a nice colored matrixplot, using the color2D.matplot
function of the plotrix package. But I can't assign xtics and ytics to this
plot. I made sure that the matrix has correct colnames() and rownames().
Here's what I do:
a=matrix(1:16, 4, 4)
colnames(a) <- c("X1", "X2", "X3", X4)
rownames(a) <- c("Y1",
2006 Nov 24
2
axis in an image() plot
Hi all,
I've found quite usefull colored-grid created by image() but I'm facing a doubt I am not able to solve.
Given the following data rectangle...
1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 12 22 0 7 2 1 0 2 0 2 6 -3 0 3
2 0 -1 0 9 3 -4 0 0 0 0 3 0 0 0
3 29 45 6 12 16 85 -2 0 -3 -4 89 -1 -1 1
4 2 9 3 6 17 3 -2 -9 -2 8
2011 Feb 07
1
color2d.maplot error
Dear all
I am using color2D.maplot to map some matrixes to plot. everything works fine. It seems that when my matrix contains only the same value color2D.maplot returns the following error:
color2D.matplot(estimatedsr,redrange=c(0,1),greenrange=c(0,.5),bluerange=c(0,.5),xlab="x",ylab="y",main=sprintf('Estimated'),show.legend=TRUE,show.values=TRUE)
Error in rgb(reds,
2016 Apr 22
0
clock24.plot/radial plot
Looks like you forgot to load the lubridate package
library(lubridate)
You are calling functions days(), hours(), minutes(), seconds(), and hour() which all come from that package.
-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352
-----Original Message-----
From: R-help [mailto:r-help-bounces at
2010 Mar 09
3
Fine Tuning Plotrix
Dear All,
Please see the code snippet at the end of the email.
I am using the color2D.matplot in Plotrix to plot a matrix.
It works great, but there are a few things I cannot figure out
(1) the value of cex.axis in the code snippet does not seem to affect
the final pdf at all (at least on my system, Ubuntu 9.10, plotrix and
Cairo installed from cran). How do I specify the size of the axis ticks
2011 Jul 28
1
plotting matrix into 2D color plots with rainbow colors
Dear all,
Can you pl. help me in plotting a matrix into 2D plot with more color
options. I tried to plot with myImagePlot with
RGB color ramp but it shows limited variation in color. There is a rainbow
plot option also. Can anyone help me.
Regards,
Hitendra
--
Hitendra Padalia, PhD
Scientist/Engineer 'SD'
Regional Remote Sensing Centre-North, NRSC
Indian Space Research Organisation
2007 Mar 22
2
Colored boxes with values in the box
Hi all,
I have a x, y matrix of numbers (usually ranging from 0 to 40). I need
to group these numbers and assign a color to each group (for example 0
to 15 - Blue, 16-30- Yellow, and 31-40- Red). Then I need to draw a
rectangular matrix which contains X x Y boxes and each box has the
corresponding value from the input matrix and is also colored according
to which group (i.e red, yellow,
2010 Jun 07
2
Polar coordinate
Greetings to you all.
I have two datasets - Time and magnitude. For a particular location, the
magnitude of the parameter varies with time. I wish to obtain a polar
coordinate distribution of time (0-24h) and magnitudes so as to visualize
how magnitude varies with different times of the day (e.g., morning,
midnight hours).
I have searched for "polar coordinates in R" but could not get
2010 Jun 23
5
Plotrix Trick
Dear All,
I am using the plotrix library to plot some matrices.
I have a problem: some of my data are outliers, hence using a linear
color scale does not work very well (you would see too many cells having
a similar, indistinguishable color). See the code snipped at the end of
the email.
Plotting the logarithm of the data gets the job done, but my problem is
that I would like to write in every
2009 Jun 10
2
filled.contour as image
Hi,
Is there a way to make the filled.contour() function produce a plot similar to the image() function? i.e. not have smooth contours but rather distinct "squares" corresponding to the different cells of the matrix. The reason I ask is because since image doesn't have an option to display colour bars it is a lot less useful.
Cheers
Muri Soares
Department of Maths and Applied
2006 Feb 11
4
Need frequency distribution for x,y coordinates
Hi,
I have a set of data in x,y coordinates across the range of -5 to 5 in each
dimension. I would like to obtain the frequency distribution of the
different points, and then graph them so you can see which of the points are
the most frequently occurring.
This would seem to be easy in Matlab, which has the hist3 command for doing
frequency distributions/histograms in 3 dimensions. However,
2011 Jul 21
1
How to set Color scale for color2D.matplot()
Hello, everyone.
I am trying to show the correlation matrix using
color2D.matplot(). And I want to map (0,1) to (dark red to dark green).
But by default color2D.matplot() will map(min element of given matrix,
max element of given matrix) to (dark red to dark green).
Can anyone help me with this issue?
Thanks a lot!
Youcheng Lin
____________
[[alternative HTML version deleted]]
2009 Aug 25
2
latitude and longitude distribution
Good day to you all,
I have lightning data containing date, time, latitude and longitude. I hope
that distribution of latitude and longitude will give number of lightning
occurrence in a region. I have used factor function to sum up the number of
events on latitude and longitude axis and saved as x and y. But when I tried
to plot the two, I had and error message ( Error in image.default(x, y, z) :
2012 Mar 12
1
2 images on one plot
Dear all
with image I can plot only one set of values in one plot.
Do somebody have any insight how to put those 2 matrices into one picture
so that in one cell in image picture are both values from mat[1,1] and
mat2[1,1].
mat<-matrix(1:4, 2,2)
mat2<-matrix(4:1,2,2)
x <-1:2
y <-1:2
image(x, y, mat)
image(x, y, mat2)
The only way I found is to mix x or y for both matrices let
2009 May 13
4
plotting a grid with color on a map
Hi all,
I have posted similar questions regarding this topic, but I just can't seem
to get over the hump and find a straightforward way to do this. I have
attached my file as a reference.
Basically, the attached file is a 5 degree by 5 degree grid of the the world
(2592 cells), most of them are NA's. I just want to be able to plot this
grid over a world map and color code the cells. For