Displaying 20 results from an estimated 3000 matches similar to: "textplot() in gplots causes problems (0x9)"
2008 Jun 11
1
Problem when combining dotplot() and textplot() using grid
Hi everyone.
I want to solve the following problem. I have a data.frame and I
create a dotplot using lattice.
Then I want to use the grid-package to create a combined graphic which
contains the dotplot as well as a textplot() (using package gplots) of
the data.frame next to the dotplot.
Example code:
library(lattice)
library(grid)
library(gplots)
xx <- data.frame(f=factor(rep(1:5, each=5)),
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 <-
2011 Oct 25
1
textplot in layout
Hello,
Someone (Erik) recently posted about putting text on a plot. That thread
didn't help. I'd like to put text directly below the 'sub' text (with no
gap). The code below is the best I can do. Note the large undesirable gap
between 'sub' and 'test'. I'd like the word 'test' to be just below the top
box() boarder (directly below 'sub').
year
2010 Sep 27
1
textplot
Hi all,
Please can you help me to add text to a plot.
I would like 5 graphical plots and 1 text plot. I use
par(mfrow=c(2,3))
then
textplot()
I would like to add various pieces of information to the text plot,
i.e. some individual values, a table of statistics, some sentences.
Is there any easy way of doing this or am I forced to construct a very
complicated dataframe?
Is this even possible?
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.
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
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
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
2001 Nov 20
2
quiver plot help
Hello everybody
I'm trying to write a simple version of matlab's "quiver".
The idea is that I have fluid with velocity defined on a grid. I have
a matrix of x-components of velocity and a matrix of y-components and
I want to see the overall flow pattern. (I work with 2D fluid
mechanics problems).
My first-stab function is below:
quiver <- function(u,v,scale=1)
# first
2002 Aug 23
1
Legends and Fonts
Hello.
Is it possible to set specify the font used by legend()? I would like to
specify a fixed-width font so that I can line up parts of vertically
stacked curve labels. For example, it would be nice if I could align the
names, ages, and weights in the following three curve labels:
Bob age=7 weight=100
Alexander age=13 weight=150
Susan age=20 weight=130
Is there perhaps a clever
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
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
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 Nov 02
0
gplots 2.5.0
Announcing gplots 2.5.0
---------------------------------
gplots provides additional plotting functions, including several
enhanced versions of base R functions.
Provided functions include:
balloonplot, bandplot, barplot2, boxplot.n, colorpanel, heatmap.2,
hist2d, lowess, ooplot, overplot, plot.lm2, plotCI, plotmeans,
qqnorm.aov, residplot, rich.color, sinkplot, smartlegend, space,
2007 Nov 02
0
gplots 2.5.0
Announcing gplots 2.5.0
---------------------------------
gplots provides additional plotting functions, including several
enhanced versions of base R functions.
Provided functions include:
balloonplot, bandplot, barplot2, boxplot.n, colorpanel, heatmap.2,
hist2d, lowess, ooplot, overplot, plot.lm2, plotCI, plotmeans,
qqnorm.aov, residplot, rich.color, sinkplot, smartlegend, space,
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 Sep 11
3
Barplot+Table
I am trying to automate a report that my company does every couple of years
for the state of Maine. In the past we have used SPSS to run the data and then
used complicated Excel template to make the tables/graphics which we then
imported into Word. Since there are 256 tables/graphics for this report, this
work flow is a little painful. I would like to automate the process and I think
I can do
2010 Sep 13
2
proportion
Hi ,
SO i have been on a role of asking simple questions lately. So much for
feeling like im getting this R business.
I wrote a script 2 weeks ago that utilized "proportion" to turn values in a
table (from "table") into proportions to then graph. I now get an error
that proportion is not a function so im confused. I ran the script a few
times and im thinking maybe i had
2009 Mar 05
3
text at the upper left corner outside of the plot region
Hi,
is there a way to place text at the upper left corner (or another
corner) of the plot?
I want to place it really at the upper left corner of the whole plot
(the file I get),
not at the upper left corner of the plot-region.
I tried text() and mtext(), and corner.label() of the plotrix package
but it didn't work out.
thanks!