Displaying 20 results from an estimated 700 matches similar to: "quiver plot help"
2005 Jun 14
0
Plotting quiver vector tensor arrows 2d field data
Hi All,
I'd like to plot something like
http://www.nawcwpns.navy.mil/~weather/mugu/mesodata/analysis.html
Looking through the galleries at
http://addictedtor.free.fr/graphiques/allgraph.php
http://r-spatial.sourceforge.net/gallery/
http://fawn.unibw-hamburg.de/cgi-bin/Rwiki.pl?GraphGallery
demo(graphics)
I did not find a function to plot a 2d field on a matrix. I did find
mention of a
2007 Nov 10
1
Add another set of labels in a plot for X axis
I have a protein sequence alignement and for each position of the
alignement, I want to plot two values (one per sequence). Alignements look
like this:
MVAFKGVWTQAFWKAVTAEFL
--------MCSISRKMAAEFI
So, data for the plot would be something like this
Prot 1 values: 1 5 2 7 4 3 5 6 8 2 2 7 6 4 2 8 5 8 2 3 7 3
Prot 2 values: 1 8 5 0 5 3 4 1 2 2 3 7 0
Aligned Prot 1
2002 Apr 10
0
FoxPro Regressions - followup from Feb
I'm trying to help with http://bugs.codeweavers.com/show_bug.cgi?id=434
and came across my thread from Feb, that I must have missed.
>> -----------------------------------
>> Non-Working (wine-2002-02-20 cvs)
>> trace:win:SetCapture Calling Event_Capture
>> trace:win:EVENT_Capture (0x20021) Window #!! -Maybe?
>> trace:win:EVENT_Capture About to Return from Event
2009 May 25
3
Interpolating variables within (RODBC library) SQL statements for MySQL
Hi everyone,
I am desperately looking for a method to interpolate strings within an SQL
statement as follows:
I get a lot of rows out of a database (in my example POSITION_to_ZIPCODE
Database with holds records for German ZIP Code <--> Gauss-Krueger
Coordinate System ) and want this to be selected and computed individually
row by row as follows:
library(RODBC)
channel <-
2010 Dec 02
4
2D Random walk
I've wrote some code to simulate a random walk in 2 dimensions on a lattice.
Basically I want to add something in to make it plot it point by point so
you can see what is going on.
Heres my code for the random walk in 2d
RW2D<-function(N)
{
i<-0
xdir<-0
ydir<-0
xpos<-vector()
xpos[1]<-xdir
ypos<-vector()
ypos[1]<-ydir
for (i in 1:N-1)
2009 Mar 24
1
segfault when running heatmap()
Hi, I was wondering if someone in the mailing list has any insight into this
segfault error that I consistently find when running a script containing
heatmap() in R 2.8.1 and 2.8.0 on a Linux 64-bit machine.
Some points:
1. This occurs when running heatmap().
2. Interestingly, if I source() the script or copy and paste the script in
its entirety, this error occurs. However, if I run the
1998 Nov 28
1
No subject
Dear Friends,
Yesterday I posed a question to the list concerning the possibility of doing
animation examples in R. Here is an example S-Plus (4.5 for Windows ) that
I wrote to illustrate my problem. If I try this in R (comment out the
graphsheet and guilocator calls) I don't see my results until after the
function has iterated through the 100 trials. I would like to plot each
iteration.
2008 Aug 09
1
Converting nested "for" loops to an "apply" function(s)
Hello,
I would like to know more about how to use the "apply" family and have attempted to convert nested "for" loops in example code from Contributed Documentation ("The Friendly Beginners' R Course? by Toby Marthews (ZIP, 2007-03-01)") to an "apply" function(s). The relevant code is:
distances=c(51,65,175,196,197,125,10,56) #distances of 8 houses
2003 Aug 15
0
Re: [R} stars graphs
I thought about that star graph again, and realized that it would be quite
a handy thing for visualizing cyclic data like time or compass direction.
Here is a cleaned up (and renamed) version to do a polar plot that starts
at the right and goes counterclockwise or a 24 hour clock plot that starts
at the top and goes clockwise. There are probably other varieties that
would be interesting.
Jim
2010 Jan 07
0
setting different environments
Hallo,
I have a set of S4 and S3 classes together in one script.
While running this script I create a lot of new functions and objects
An example for S3 and S4 classes:
## S3 classes
pt <- list(x=1,y=2)
class(pt) <- "xypoint"
xpos <- function(x, ...) UseMethod("xpos")
xpos.xypoint <- function(x) x$x
ypos <- function(x, ...) UseMethod("ypos")
2007 Oct 31
1
textplot() in gplots causes problems (0x9)
Hello,
I am using textplot function in gplots package to put some model
output inside a PDF file, but it does not seem to work properly with
PDF.
I am doing follwing:
pdf(file="C:/...", paper="a4", width=8, height=12)
.model <- lm(.model.formula, data=database)
textplot(capture.output(summary(.model)), valign="top", halign="left")
I am getting these
2009 Jan 19
2
plotting arrows with different colors and varying head size
Dear list,
I would like to plot arrows with different colors according to arrow length, and also (if
possible) with head size proportional to arrow length. The idea is to make a quiver-like plot of
matlab with wind speed data.
So far, I´ve been able to use different colors, but I need to find a more efficient way to recode
arrow length intervals into colors. On the contrary, I can't define
2005 Nov 13
1
problem with grid animation
I'm trying to do animation with grid. Basically it's a vector field, like what 'quiver'
in Matlab creates. I need to update it with grid.edit(). It seems grid erases the
whole thing first, then redraws. Therefore the evident 'flash' between frames.
Any way to avoid this flash? Thanks.
2010 Nov 23
1
Slow update(insert) on Data.frame
Hi
When I try to update an number in a large data.frame by its pos It's really
slow it take almost a sec to do this and I wonder why and if where is any
faster way to update a number in a data.frame
ive tried
DF$col[POS]<-number
DF[xPOS,yPOS]<-number
Thx
//Joel
--
View this message in context: http://r.789695.n4.nabble.com/Slow-update-insert-on-Data-frame-tp3055707p3055707.html
2009 Mar 20
1
minor tick marks for plots (PR#13616)
Hello,
I think I found a bug:
> windows(1,width = 10, height = 10, pointsize = 5,xpos = 0, ypos = 0 )
> hdata[1:3,1] <- c(1,10,15)
> hdata[1:3,2] <- c(2,1,4)
> plot(hdata[,1],hdata[,2],xaxt="n")
> axis(1,at=c(2,10,14))
> minor.tick(nx=2, ny=1,tick.ratio=1)
the minor tick marks appear between the tick marks which would have been
drawn without the option
2009 Oct 08
1
variogram
Hello everybody,
I want to run the following R-code, but it does'nt work.
> res.vgm = variogram(ertrag ~ rep, # !!!
+ loc = ~ xpos + ypos, # !!!
+ width = start.range / 10,
+ data = d)
Error in vector("double", length) : element 2 is empty;
the part of the args list of '.Internal' being evaluated was:
2011 Oct 21
1
windows limits
Hello,
Using the rgl package, I can set the device window to any dimension (that I
have tested):
par3d(windowRect=c(1,1,700,700))
With windows I can't get the window to span from the top to the bottom of
the monitor. In the following, no matter how large the ypinch value gets it
stops, leaving about 2 inches of space at the bottom of my screen:
windows(record=TRUE, ypinch=1100, xpinch=10,
2009 Jun 16
1
adressing dataframes
Hi everyone,
I experience some problems with adressing of data.frames when I retrieve
some information for geographical position (ypos, xpos) ot of a MySQL
Database and want to perform some simple statistics. The problem is
adressing the dataframes with a construct like
rawdata[c(type)] vs. rawdata$TEMPMIN
to retrieve the numerical information and not a string (I want to store the
numerical
2009 Nov 04
1
cascade option for dev.new?
I frequently run scripts that generate multiple graphs. Unless you specify a specific window location, dev.new superimposes all new graphics windows exactly on top of each other. It would be nice to have a "cascade=TRUE" option in dev.new to prevent windows from being hidden. A hasty approximation to this is the following function:
# utility function to prevent overlapping plot
2004 Nov 25
1
Making legend() look like my plot()
Hello,
I am using code like the following to create as simple plot...
plot(x,y,type='b')
lines(lowess(x,y),lwd=3,lty=3,col=2)
I want to add a legend which shows lines looking exactly like those used
in my plot, i.e. a thin black line with gaps taken up by circles (the
default for type='b', and a thick dashed red line with no pch at all).
I have two problems,
1) making the