Displaying 20 results from an estimated 6000 matches similar to: "Newbie on plotting"
2008 Sep 04
3
table and colnames
I have a table statement that returns the following:
[10.839,10.841] (10.841,10.843] (10.843,10.846] (10.846,10.848]
(10.848,10.85]
0 0 0 0
1
(10.85,10.852] (10.852,10.854] (10.854,10.857] (10.857,10.859]
(10.859,10.861]
0 0 0 0
0
What I want to do is get the upper bound
2008 Nov 19
2
Bucketing/Grouping Probabilities
I have a list of entrants (1-14 in this example) in a competitive event and
corresponding win probabilities for each entrant.
[(1, 0.049), (2, 0.129), (3, 0.043), (4, 0.013), (5, 0.015), (6,
0.040), (7, 0.066), (8, 0.038), (9, 0.204), (10, 0.022), (11, 0.234),
(12, 0.044), (13, 0.068), (14, 0.035)]
So, of course Sum(ps) = 1.
In order to make some subsequent computations more
2005 Oct 03
2
grob questions
If I run the following example from:
http://www.stat.auckland.ac.nz/~paul/grid/doc/grobs.pdf
> grid.newpage()
> pushViewport(viewport(w = 0.5, h = 0.5))
> myplot <- gTree(name = "myplot", children = gList(rectGrob(name = "box",
+ gp = gpar(col = "grey")), xaxisGrob(name = "xaxis")))
> grid.draw(myplot)
>
2012 Mar 10
2
Window on a vector
Dear all,
I have a large vector (lets call it myVector) and I want to plot its value with the logic below
yaxis<-myVector[1]
yaxis<-c(xaxis,mean(myvector[2:3])
yaxis<-c(xaxis,mean(myvector[4:8])
yaxis<c(xaxis,mean(myvector[9:16])
yaxis<c(xaxis,mean(myvector[17:32])
this has to stop when the new ..... yaxis<c(xaxis,mean(myvector[1024:2048]) will not find the correspondent number
2011 Aug 18
1
Where are the ticks on grid.xaxis?
Hi R list,
I like the default ticks that are set up using grid.xaxis() or grid.yaxis()
with no arguments. Finding good values for the 'at' argument is usually not
a trivial task; the default behavior of these functions seems to work well.
The problem with this strategy is that I cannot figure out how to "recover"
the positions of these ticks when you do NOT specify the
2008 Jul 09
1
childNames for xaxis grob (grid package)
Dear list,
Can someone explain why the childNames below
gives
character(0)
instead of the (canonical) names of the children grobs
of the xaxis gTree ?
[1] "major" "ticks" "labels"
Many thanks in advance,
Tobias
### minimal example code ###
library(grid)
pushViewport(plotViewport(c(5,4,4,2)))
pushViewport(dataViewport(1:5, 1:5))
grid.points(1:5, 1:5)
2005 Sep 28
1
boxplot and xlim confusion?
I have some code as shown below. Basically, I would like three
boxplots to be set next to each other with no ylabels on the two
"inner" plots, and I want the same x axis range on all three. However,
it seems like boxplot does not respect the xlim setting. I've tried
the various ways I thought would work (par, boxplot(...xlim=)) but
none of them seem to work. I then tried plot.window,
2010 Apr 14
1
Problems getting symbols() to show table data
Hello,
I am trying to create a graphic to help me visualise data. A (very
simplified) sample of the data is
http://n4.nabble.com/file/n1839676/circle_data.txt circle_data.txt :
Aug-07 Nov-07 Feb-08
data1 1 1.5 -1
data2 1 1.2 1.6
data3 1.3 1.4 1.8
data4 1.3
2009 Jul 15
3
abline(v= x) in plot with time formated xaxis not working
Hi,
I try to create a vertical line in my plot, which has a xaxis comprising
time formated data.
This is what I tried:
----------------
y<-152833
x<-strptime(y, format="%H%M%S")
abline(v=x, col="red")
----------------
for some reason, it doesn't work and no error msg is displayed...
I hope someone can tell me what I do wrong, or maybe an alternative.
Thanks
2010 Mar 23
1
:has_many and :controller specified in routes.rb
Have an app using older version of Rails (2.3.2) that I need some
routing assistance with if anyone has a minute.
The app was originally designed to be purely html view, and an xml and
json api was hacked on. To keep it clean, we are now moving the first
version of the api (v1) under its own directory (v1) under app/
controllers but still responding to the old paths.
One of the parts of the new
2009 Jun 20
1
modifying sound package function plot.Sample
Hi,
I'm trying to modify this function.I want to remove the existing xaxis(the
tick marks and the values below each tick) and make it dynamic so that i can
choose whether i want the xaxis at the top or bottom but i cant seem to
change that.can somebody help me?
plot.Sample <- function(x,xlab=NULL,ylab=NULL,...){
sampletest <- is.Sample(x,argname="'x' ")
if
2010 Feb 09
1
Bar plot
Hello
(this might be a very simple question)
My data is as follows (table name is student)
Year StudentsPassed
1 2000 300
2 2001 360
3 2002 450
4 2003 450
5 2004 270
6 2005 280
7 2006 400
8 2007 270
I want to plot a barplot so for this
If I use barplot(students) it says "Error in barplot.default(students) :
'height' must be a vector or a
2009 Jun 20
4
Customize axis labels in xyplot
Hello,
I'm plotting an xyplot where a continuous var recorded every min is plotted
on y, and time expressed as HH:MM:SS on x, as follows :
xaxis=list(tick.number=12,rot=90)
lst=list(x=xaxis)
xyplot(upt$LOAD_1 ~ upt$TIME, data=upt, type=c('g','p', 'r'), scales=lst)
On the x-axis, every time label is drawn and the label quickly become
unreadable as they overlap on each
2009 Jul 21
2
animated grid graphics
I need to make a fairly complex animated graphic and decided to use grid for it.
A very simple example of what I need:
##==============================================================================
library(grid)
grid.newpage()
pushViewport(plotViewport())
pushViewport(viewport(xscale = extendrange(c(0, 100)),
yscale = extendrange(c(0, 100))))
grid.xaxis()
grid.yaxis()
2000 Jul 17
0
Fonts and Line widths in boxplot
> Hi All R guru's,
>
> A couple of simple questions which I cannot find answers to in "an
> introduction to R" or in the reference manuals.
>
> I am running R on Win95, and have plotted up quite a nice box and whisker
> plot:
>
> char<-read.table("n:/reddinm/grifpr~1/survey/char.txt")
> attach(char)
> boxplot(Al,Fe,OC,pH,
2005 Jun 20
6
Bucketting data
Hi,
Am sure this is a trivial question but for some reason, haven't been able to figure it out.
I want to bucket data in a vector, and then iterate over the buckets.
Say the data set is:
> cleandata[,4]
[1] 26 26 26 26 26 26 26 26 26 26 26 26 61 61 61 61 61 61 61 61 61 61 61 89 89 89 89 89 89 89 180 180 180 180 362 544 544 544
[39] 544 544 544 544 544 544
2008 Apr 28
1
Label Rotation when Plotting with Factors
Hello,
Sorry if this is a repeat, having trouble finding what I need on archive and am
a novice with graphics in R!
I have plotted the results of a logit regression by factor, where "city" is the
factor set name. The problem is city names are too long and I need to rotate
them 90 degrees along the xaxis. This is what I've tried...
plot(city, predicted.probability, xlab =
2010 Oct 19
14
client won't use remote file bucket
Hi all,
I''m having a stupid moment getting a remote file bucket working. My
client only file buckets locally, not remotely.
I have this site.pp:
*********
filebucket { "main": server => "puppet" }
File { backup => "main" }
node ''default'' {
include test
}
*********
and this test module:
*********
class test {
file {
2001 Nov 22
4
changing the magnification of axis annotation
Hi all,
how do I change the magnification of xaxis annotation? I need a smaller
axis text size in some of my plots. I tried cex.axix=0.5 in plot(), but
this doesn't work.
Thanks, Sven
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or
2009 Jun 24
2
lapply across using multiple columns
Hi,
To set a simple an clear picture of what I'd like to do, here is an example.
I would like to calculate mean of column A and B bucketed by factor in
column X in a data.frame. lapply or aggregate operates on a single column. I
found dapply function in some package which doesn't seem to exist any more.
Is there anyway that I can accomplish something like this? Thank you so much
in