Displaying 20 results from an estimated 20000 matches similar to: "functions within a list"
2008 Aug 19
2
conditional with and operators
Hi,
I have a problem in which I am parsing data from a list. I am simply trying to return data that has several conditions being true. Here is my syntax below:
d<-sapply(res,function(.df){(.df$TimesVisited[.df$Tick>912 && .df$Id>0])}) #res is the list, and I am trying to return a result that has two true conditions (that is the variable Tick should be greate than 912 and Id
2008 Nov 24
2
lattice contourplot background covers inward-facing ticks
I wish to have inward-pointing ticks on my contourplot graph, but the
colored background produced by the "region=TRUE" statement covers the
ticks up, is there any way around this? Sample code below. --Seth
library(lattice)
model <- function(a,b,c,d,e, f, X1,X2) # provide model function
for contour plot
{J <- a + (b*X1) + (c*X2) + (d*X1*X2) + e*(X1^2) + f*(X2^2)
pp
2009 Jan 27
3
plot Ticks
Is there a way to force the number of ticks along an axis ?
I read the on-line documentation and tried many combinations of all available parameters from functions
par(), axTicks(), axis(), plot() ... but no luck !
Thank you very much,
Maura
tutti i telefonini TIM!
[[alternative HTML version deleted]]
2007 Aug 30
4
Simple Graph
Hi Sir
We use the function mpg() for ticks on axes. If we define more number of
ticks then each tick is not labeled. How to label each tick on axes?
Regards
--
AMINA SHAHZADI
Department of Statistics
GC University Lahore, Pakistan.
Email:
amnakhan493@gmail.com
amna_989@hotmail.com
amna_989@yahoo.com
[[alternative HTML version deleted]]
2009 Jun 18
1
lattice logaritmic scale (basis "e" ), rewriting labels using xscale.component
Hi there,
sorry for troubling everybody once again, I've got a problem rewriting
Sarkar's function for
rewriting the tick locations in a logaritmic way (s.
http://lmdvr.r-forge.r-project.org/code/Chapter08.R):
His example works for log 2 but I need log e (natural logarithm). My
problem is that if I replace
2 with "e" (using paste()), I get the error message that the location
2011 Dec 13
2
axis tick colors: only one value allowed?
Hi,
So far as I can tell, the 'col.ticks' parameter for axis() only uses the
first value provided. E.g.:
plot(0:1,0:1, col.ticks=c('blue','red','green')) #all ticks are blue
Just wondering if there's a different option in the basic plot commands
that can handle multiple colors, and also whether ggplot and/or lattice
allow for multiple tick colors.
2005 Mar 30
1
Finding the "height of a line of text" for axis
I would like to draw only the ticks of an axis, but not the axis
itself. I don't think this can be done using axis(), so I am trying to
write a cut-down version in R, which only draws ticks.
The point at which I am stuck is that the length of a tick is set by
par("tcl") as a fraction of the "height of a line of text". So I would
like to draw a line whose length is also
2003 May 18
1
log scale y axis ticks control?
Hello R Users!
I'm using lattice to produce some graphs with logaritmic y-scales. I use
the command
xyplot(hits ~ c(1:1024), data=eichData, type="S", scales=list(y =
list(log=10)))
to create the plot. This is fine, except for the automatically choosen
tick marks. I'd like to have a major tick at the 10^n location and minor
ticks in between which correspond with the native
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
2011 Dec 16
1
problem with tick graph
Dear all,
I'm having problems with the tick of my graph. I'mpcombining lines and
barplot.
For my I'm using the function axis combined with the function pretty to have
more efficient tick, but all my tick (for example, 300 as my max tick and -100
as my min tick) are not printed on my graph.
So I would like to have for the left axis the seq from 0 to 100 (with 0 and
100 printed on
2008 May 05
2
axis and tick widths decoupled (especially in rugs!)
Hi!
(a complete newby, but will not give up easily!)
I was wondering if there is any way to decouple the axis and tick mark
widths? As I understand they are both controlled by the lwd setting, and
cannot be controlled independently? For example I might want to create major
and minor ticks, which I now know how to do by superimposing two axes with
different at settings, but what if I also wanted
2006 Jun 17
1
Axis line not appearing with axis(tick=FALSE) (PR#8998)
Full_Name: Sean Pieper
Version: 2.3.1
OS: Windows
Submission from: (NULL) (67.188.92.37)
Hi, I am trying to create a qualitative figure for which I don't want tick marks
or numbers, but having some axes would be nice.
If I do:
plot.new()
axis(2,labels=FALSE,tick=FALSE,lty="solid",lwd=1)
I expect this should give me a vertical line on the left edge of the plot, but
nothing
2007 Mar 20
2
Ticks on barplots
Dear Gurus,
Using R 2.4.1 on Windows XP
I am generating stacked barplots of age-composition of fish populations
(Y) over time (X). As there are many years, not every bars is labeled.
When looking at the plot, it becomes difficult to associate labels with
their bars.
We have improved this a bit by using axis() to add a tickmark below each
bar. Can anyone suggest a way to draw ticks ONLY
2010 Jul 16
1
Weighted densityplot?
I'm trying to plot a series of densities using/comparing differing weights. I see the reference to weights and subscripts, but I don't understand how to implement that. My data are of the form:
I, J, Actual, Distance, Subset, Weight1, Weight2, ...
I'm trying to see the effect of the distance distribution (Actual by Distance) compared to the various weighted distributions
2007 Aug 21
5
proper way to sleep
This is not spam about sleep aids :)
Q: Is there a 'standard' way to sleep for a specified number of BIOS ticks
(or seconds) in a com32 program?
I grepped through the com32 library source and didn't find anything for
'sleep' or 'tick'.
If not, you may want to consider adding:
void syslinux_sleep(int seconds);
void syslinux_sleep_bios_ticks(int ticks);
or
2006 Apr 17
1
Tick mark alignment for POSIXct data
I am using POSIXct objects to store my date/time information. If I am
plotting less that 2 days worth of data, I get the correct tick marks on the
x-axis which is showing the 'day HH:MM' and these line up with the data
points.
If the data spans more than 2 days, the tick marks are now off. In the data
below, I am creating some sample data and plotting the points. I am in the
Eastern
2011 Mar 10
3
lattice xscale.components: different ticks on top/bottom axis
Good afternoon,
I am trying to create a plot where the bottom and top axes have the same
scale but different tick marks. I tried user-defined xscale.component
function but it does not produce desired results. Can anybody suggest
where my use of xscale.component function is incorrect?
For example, the code below tries to create a plot where horizontal axes
limits are c(0,10), top axis has ticks
2006 Feb 27
1
log scale y axis ticks control on boxplots
Hey R Users
I like to control the ticks and labels in a boxplot as described for a
xyplot below (thread in maillinglist in may 2003). Does anybody knows
how it works?
Thanks in advance
Thomas
Thread from May 2003
(http://tolstoy.newcastle.edu.au/R/help/03a/5604.html)
Hello R Users!
I'm using lattice to produce some graphs with logaritmic y-scales. I use
the command
xyplot(hits ~
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::
2009 Mar 06
1
Process accounting in interrupt diabled cases
Hi,
I am not sure, but I think this may be a process accounting bug.
If interrupts are disabled for a considerable amount of time ( say
multiple ticks), the process accounting code will still account a single
tick for such cases, on the next interrupt tick.
Shouldn't we have some way to fix that case like we do for NO_HZ
restart_sched_tick case, where we account for multiple idle ticks.