Displaying 20 results from an estimated 12000 matches similar to: "Month tick marks on a plot()"
2009 Feb 13
4
PCA functions
Hi All, would appreciate an answer on this if you have a moment;
Is there a function (before I try and write it !) that allows the input of a
covariance or correlation matrix to calculate PCA, rather than the actual
data as in princomp()
Regards
Glenn
[[alternative HTML version deleted]]
2009 Jan 14
6
Removing duplicates from a list
For a list say;
list1<-{1,2,3,4,5,2,1}
How do I remove the duplicates please?
My real list is 20,000 obs long of dates with many duplicates
Regards
Glenn
[[alternative HTML version deleted]]
2009 Feb 06
2
does R plus 3.3 need vista ?
Hi all - has anyone ot and experienced problems with R+.
Have downloaded the trail and it will not work -does it need vista (like it
says on the box!)
Thanks
glenn
[[alternative HTML version deleted]]
2009 Jan 18
1
Combinations
Hi All, some help on this would be appreciated;
Understood combinations(7,4) returns all the possible 4 part combinations
out of 7. Is is possible to substitute the ³7² for a list of stuff you would
like to see the mix of; c(³a²,...,²g²) say ?
Thanks
Glenn
[[alternative HTML version deleted]]
2009 Jan 14
2
List of Lists
Dear All;
Is it possible to create a list of lists (I am sure it is) along these
lines;
I have a dataframe data02 that holds a lot of information, and the first
column is ³date²
I have a list of dates in;
data03<-c(date1,.....,daten)
And would like to create a list;
data04 <- subset(data02, date == data03[1,])
Ie. data04 holds the data from data02 that matches a date in data03
How do
2009 Feb 09
2
subsets problem
Help with this much appreciated
I have a large dataframe that I would like to subset where the constraint
Test1 <- subset(df, date == uniques[[1]]), where uniques is a list of dates
that must be matched to create Test1.
I would like to perform an operation on Test1 that results in a single
column of data. So far so good.
How do loop through all values in the uniques list (say
2009 Jan 10
1
<no subject>
Very simple questions if anyone can help:
(1) what is the value in saving workspaces, which is offered at every close?
I thought it might save the set up of the GUI but I cant work out what it
does I run a script that loads the packages I need at the start of every
session.
(2) mathematica has a term (%) that when typed means the last returned
value, so > % + 1 say would return the last
2009 Feb 09
1
sapply
Newbie question sorry (have tried the help pages I promise)
I have a dataframe (date,stockprice) say and looking how I might get the
return of: dataframe (difference in days, change in stock price) using
sapply - I require a very simple function and don't really want to go down
the zoo and quant mod route
Regards
glenn
[[alternative HTML version deleted]]
2009 Feb 09
1
standardize
Very quick newbie question sorry;
How do I standardize a list of data please (other than do the calculation of
course). Is there a quick way please ?
glenn
[[alternative HTML version deleted]]
2003 Oct 06
3
tick marks: 0, 12, 24, 36 ...
Dear R-help list,
I have a problem with the tick marks of a Kaplan-Meier survival plot.
Here is a sample:
follow.up<-c(10,20,30,40,50,60,70,80,90,100) #months
dead<-c(1,1,1,0,1,1,0,0,0,0)
KM <-survfit(Surv(follow.up, dead))
plot(KM)
The result is a nice plot. However, our research group thinks it may be
a better idea to place the ticks to the years on the time scale, i.e. 0,
12, 24, 36
2010 Dec 26
1
lattice splom: how to adjust space between tick marks and tick labels?
Dear expeRts,
how can I decrease the space between the tick marks and the corresponding labels in an splom?
See here:
library(lattice)
U <- matrix(runif(4000), ncol = 8)
splom(U, axis.text.cex = 0.2) # => space between the [small] tick labels and tick marks is/seems to be too large
I checked ?panel.pairs but could not find an option for that.
Cheers,
Marius
2010 Nov 20
1
Removing tick marks and Adding labels to lattice plots
Hi all,
I am trying to remove the current labels of the tick marks and replace them
with text using xyplot within lattice
right now I have tick marks at 1, 1.5, 2, 2.5, 3 I would like to transform
them to say 'T1', 'T2', 'T3'
thanks in advance
Kathleen
--
View this message in context:
2011 Jul 09
1
Suppressing the labelling of tick marks on ggplot2
Hi,
I have the follow ggplot2 code I am running:
ggplot(data=bb.res.math,aes(x=factor(id.bb),y=bb.math.comb,fill=BB)) + geom_bar() + facet_grid(BB~.) + scale_fill_brewer(pal="Set1") + ylab("Average Student Residual (Math)") + xlab("Student ID")
The number of unique id.bb is 2207 and so my X-axis has a couple of thousands, indistinguishable tick marks that correspond
2006 Oct 31
1
[ggplot] controlling axis and major/minor tick marks
Hello there!
I'm starting with ggplot and was wondering how I could control the axis
of a plot. I would like the axis of the plot to be drawn black which I
thought to acheive with the option axis.colour="black". However, this
had no real effect on the plot. Then I found grid.colour which I changed
to black as well. Now I got my axis as I wanted them, but ggplot now
draws the grid
2000 Oct 26
3
Tick marks for abline
Dear R People:
I am drawing graphs for a College Algebra class. I would like to have
the x and y axes, along with the lines that I am plotting. So I leave
off the axes, and use xlim and ylim. Then I add my abline(v=0).
However, I would like to have tick marks on the abline. How would I do
that, please?
Thanks in advance!
Sincerely,
Erin M. Hodgess, Ph.D.
Associate Professor
Department of
2007 Nov 30
2
Organising tick-marks in plot()
Hi Folks,
I'm advising someone who's a beginner with R,
and therefore wants the simplest answer possible.
The issue is to produce a plot using
plot(x,y,...)
where, on the X-axis, the tick-marks should be
on the lines of:
-- Range of X-axis: 0:1000
-- tick-marks labelled "0","200",...,"800","1000"
-- unlabelled tick-marks every 50 from 0 to
2010 Jun 09
1
minor tick marks
Hi !
I need a plot for data extending over several orders of magnitude on the y axis.
The following command generates a nice looking semi-log plot for my data:
plot(x,y,log="y",type="l",lty=3, ylim=c(0.01,2),yaxp=c(0.01,1,1),las=1)
I would appreciate having also minor tick marks in-between the 3 major ticks obtained with the above command. The "minor.tick" function
2004 Sep 17
1
thickness of tick marks
Hi,
I am unable to get the tick marks to appear thicker in plot. I have
tried things like
par(lw=2) but this only seems to affect other line thicknesses.
The use of axes directly fixes the problem because lw = 2 applies to
both the axis and the ticks.
Is there is way of feeding a single parameter to plot or setting a par
parameter to do this?
I am using R 1.9.0 on a windows 2000 platform.
2008 Jun 16
2
in axis() suppressing axis line but keeping tick marks
I've been trying to figure out a parameter that will let you separately
adjust the parameters for the axis line from the tick mark.
In the following example, I would like to suppress the axis line, but keep
the tick marks.
Thanks,
Andrew
foo <- data.frame(x=1:3, y=4:6)
plot(foo$x, foo$y, type="n", axes=F)
points(foo$x, foo$y)
axis(side=1, at=foo$x, lty=0) #would like to figure
2025 Jan 21
1
ggplot with major and MINOR tick marks on a log scale
?s 02:18 de 21/01/2025, Sorkin, John escreveu:
> I have used ggplot to create a graph on which the y-axis is on the log scale. (see data and code, below.) I would like to add minor tick marks, which will also be on the log scale. The data and code are below. I hope somone can tell me how I can modify the ggplot code so it produces minor tick marks on a log scale.
> Thank you,
> John
>