Displaying 20 results from an estimated 7000 matches similar to: "bug in rect (PR#9307)"
2007 Apr 25
1
identify() and metafile copies under Windows XP (PR#9634)
I am running R version as follows under Windows XP.
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 5.0
year 2007
2000 Aug 21
2
rect() question.
Hello.
I have another rect question. If I want to make a lot of rectangular,
without borders, and without any spaces between them, how could I do it?
I.e.
> plot(-1:1., -1:1., type = "n")
> rect(0,-1,1,1,col="red",lwd=0,border=F,xpd=T)
> rect(-1,-1,0,1,col="blue",lwd=0,border=F,xpd=T)
will produce two rectangular, but there is space between them. How
2010 Dec 01
2
How to draw a rect() behind a hist() ?
Hi,
I have the following code:
hist(gps$heartpercent, breaks=5)
rect(90, par("usr")[3], 100, par("usr")[4], col = "red")
How do I get the rectangle to appear behind the histogram. Barring that,
how can I make certain bars of the histogram to be a certain color?
Thanks,
Jason
2009 Apr 15
2
Creating a graphics window (in Windows, with RGui) that is not constrained to the RGui Window
Hi, all,
Using RGui, is it possible to create a graphics window that can be moved
outside of the RGui window? (This can be done--in fact must be
done--using Rterm, but I wish to use RGui.)
My interest for this is to use two monitors: in "my private monitor" I
wish to execute R code in the Rgui window; in "the public monitor" I
want the audience to see the results in the
2010 Oct 09
1
Plot time range with rect or boxplot
Hi,
I am trying to use rect (R2.11) to plot a set of data as following
> data
Company Pt Pri Pub
1 A WO520 8/5/09 2/11/10
2 B WO893 7/30/03 2/24/05
3 A WO258 12/8/08 6/17/10
4 C WO248 1/13/09 9/2/10
pri<-
2011 Sep 16
1
cutree() and rect.hclust(): different labelling of classes
I've found that while cutree() and rect.hclust() make the same classes
for a given height in the dendrogram, the actual labeling of the classes
is different. For example, both produce the same 4 classes but
class 1 according to cutree() is class 4 according to rect.hclust().
Would it be possible that future versions provide the same labeling?
rect.hclust() is useful to display the classes
2010 Oct 20
1
need for speed on grid.rect
When I use grid.rect to print a multi-coloured grid, it is incredibly slow compared to a single colour grid, or even a two colour grid.
I've set out some simplified examples below. This is something I run literally thousands of times a day, so I would greatly appreciate any hints on how I might improve the speed???
library(grid)
pushViewport(viewport(
width = unit(100,
2004 Apr 05
1
rect.hclust fails when k is specified (PR#6740)
Full_Name: Ivan Egorov
Version: 1.8.1
OS: MS Windows 2000, SP4
Submission from: (NULL) (194.186.91.129)
V<-t(matrix(scan('C:/V3.dat'),3))
d<-dist(V)
hc<-hclust(d)
rect.hclust(hc,5)
Error message is displayed:
Read 24 items
Error in rect(m[which[n]] + 0.66, par("usr")[3], m[which[n] + 1] + 0.33, :
plot.new has not been called yet
Here's my data file
2005 Mar 17
1
Varying grid.rect in different panels of a Lattice plot
Dear r-help,
Sleep-deprivation from having 2 youngsters under 2 around the house is
fuzzing my brain, so please be gentle if the answer to this query is obvious!
In the example below, I'm trying to use grid.rect to add grey rectangles to
the panels of a lattice plot to indicate which months spawning occurred of
a (very cute) native Tasmanian fish. The fish in the two lakes spawned at
2009 Oct 14
1
rect function
Dear all,
I have a question about how to load data or (entering data )to each cell of
a rectangle created by rect .
e.g.
I have a matrix
rbind(1:2,1:2)
I have created a 2x2 rectangle by using:
a<-0:1/10
b<-0:1/10
kk<-expand.grid(a,b)
plot.new()
rect(kk[, 1], kk[, 2], kk[, 1] + .1,kk[, 2] + .1)
so how do we put the value of rbind(1:2,1:2) into the relevant
2010 Oct 27
1
How Plot, Axis and Rect work together?
Hello everyone,
I am trying to understand how plot axis and rect might work together
I would like to plot some values on a plot with x(0,100) and y(0,100) i want to
see all the values from 0,1,2,3,4,5,.....100 written in the x and y axis.
At the same time I want some grid to easily see when y and x values cross.
Finally I want to paint red two of the cells created by this grid.
I am trying
2012 Sep 27
1
Problem with grid.rect
I have a stupid problem that is currently driving me crazy...
Let us suppose that I want to draw a big red square in the middle of my
current device (say X11)
I tried the following code :
pushViewport(viewport(xscale=c(0,1), yscale=c(0,1)), just=c("center", "center"))
vp1 <- viewport(x=unit(0.5, "native"), y=unit(0.5, "native"),
width=unit(0.4,
2003 Mar 05
1
ACL Support for sftp
Hello,
I would like to see getfacl/setfacl as commands added to sftp. Are there
any plans on doing this, or whom should I send patches to?
Thanks in advance
regards
Stefan
--
--------------------------------------------------------------------
Stefan V?lkel stefan.voelkel at millenux.com
Millenux GmbH mobile: +49.170.79177.17
2008 Jul 26
1
the C function drawing a rectangle: heatmap() -> image() -> do_image() -> GRect() -> GERect() -> rect() -> do_rect() -> GRect() ??
Hello anyone used to do similar things: search for the final C function that corresponding to the drawing of a rectangle?
As listed in the subject, I started from heatmap() in R and after several steps reached the GRect() in C. However, then it refers to rect() which further seems to refer to do_rect(), and then, surpringly, do_rect refers to GRect()!!! A dependency circle! How can it work if no
2011 Nov 09
1
Are there equivalents to xblocks or rect that can be used with plot.xts?
I would like to add vertical shaded blocks in plot.xts graphs (like recession
periods in FRED graphs)
The reason I use plot.xts instead of plot.zoo is that I like the fact that
the grid is automatically aligned with major ticks in plot.xts.
xblocks() and rect() do not seem to work with plot.xts (only with plot.zoo).
Are there any alternative methods that work with plot.xts?
Thanks.
--
View
2009 Apr 03
0
dendrogram rect.hclust() not working?
I have tried to use rect.hclust() to draw a rectangle around a set of
leaves, but am running into trouble.
The rect.hclust() is drawing two rects instead of one, and of the
wrong size:
--------------------
scoreClusterObj <- hclust(scoreDistanceObj, method=clustMethod)
order <- scoreClusterObj$order
orderedLabels <- rep(0, length(order))
for (orderIndex in 1:length(order)) {
# this
2012 Aug 26
0
[ wxruby-Bugs-29632 ] Missing "=" in rect.rb
Bugs item #29632, was opened at 2012-08-26 08:38
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=29632&group_id=35
Category: Incorrect behavior
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: mark wonttell (runnerle)
Assigned to: Nobody (None)
Summary: Missing "=" in rect.rb
Initial Comment:
Hello,
in rect.rb on line
2007 Aug 08
1
Help using gPath
Hi everyone,I'm trying to figure out how to use gPath and the documentation
is not very helpful :(
I have the following plot object:
plot-surrounds::
background
plot.gTree.378::
background
guide.gTree.355:: (background.rect.345, minor-horizontal.segments.347,
minor-vertical.segments.349, major-horizontal.segments.351,
major-vertical.segments.353)
guide.gTree.356::
2008 Nov 04
2
ggplot & annotating charts
Dear "R-listers"
I've been trying to figure out how to annotate charts in ggplot (ie add text
to line charts, highlighted boxes etc). By and large, I can get close to
what i want with base graphics, but would ideally like to use ggplot
whenever possible (additionally, i would like to add text labels
automatically to the chart). The code is below
I suspect I need to use geom_rect,
2003 Jan 21
1
[R] proposal: lattice/levelplot: panel.catlevelplot
I suggest to add a panel function to levelplot (or perhaps
to an other 3d lattice function) which is able to translate
the z values into the size of the rectangles.
It could be used to display categorical data.
I append the proposed code and two examples:
- panel.catlevelplot()
- example1.catlevelplot.esoph()
- example2.catlevelplot.esoph()
Wolfram Fischer
#------ CODE