Displaying 20 results from an estimated 10000 matches similar to: "Axis labels"
2007 Oct 25
4
ploting labels on barplot
Again me.
I want to plot the numbers on the bars of a barplot.
This can be done using hist function when setting the label argument true
(i.e.
data <- c(1,2,3,4)
hist(data, labels=T)
When I try this using barplot I get an error:
> barplot(summary(data), labels=T)
Error in axis(if (horiz) 2 else 1, at = at.l, labels = names.arg, lty =
axis.lty, :
formal
2007 Dec 01
3
compare strings
Sorry for the question, but I really cannot find the right search terms to
find an answer..
I have a data frame with strings in some of the columns.
I want to know all the rows where the strings in both columns are equal.
How do I do this?
Thanks,
Bernd
[[alternative HTML version deleted]]
2007 Oct 25
2
data frame usage
Hi,
I am new to R and couldn't find any information on how to handle my table
data that I just read in the way I want to use it..
I read in a table from a file:
x <- read.delim("filenam", header=TRUE)
one column (x$label) hold the class labels. Another holds some values
(x$val).
I want to calculate summary statistics for different classes.
How would I do this?
Thanks,
Bernd
2007 Nov 26
1
looking for packages that visualize nucleotide sequence properties
Hi there,
I am looking for R-packages that can help me visualize properties on
nucleotide sequences. I want to display sequences in the 1-100K base range
as lines and plot features above and below those lines.
Any ideas would be welcome.
Thanks,
Bernd
2007 Oct 29
2
Qsub - unable to open connection to X11 display
Hi there,
I want to run an R script on a cluster with qsub. Obviously I don't want to
display any X window, but I want use png() or something else to write out
images.
Unfortunately I get the following error message:
> png(filename = " ALL.png", width = 480, height = 480, pointsize = 12, bg =
"white", res = NA)
Error in X11(paste("png::", filename,
2008 Mar 20
1
ggplot - axis labels angle
dear R-tists,
im an struggling with labeling ticks of the axis in a ggplot.
i would like to print the text associated with the ticks being ploted
with a 90 degree angle.
how can i possibly do this?
cheers.
bernd.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bernd Ebersberger
Management Center Innsbruck, Austria
[[alternative HTML version deleted]]
2004 Feb 19
3
suppressing non-integer labels for plot x-axis
Dear R-helpers,
I am having difficulty making R plot only integer labels on the x-axis
of a simple graph. I want to plot the median values of a score on each
of three occasions. Non-integer occasions are impossible. But, R keeps
labelling the x-axis with half-occasions, despite my attempts to stop
this using the "xaxs" and "xaxp" parameters of 'plot'.
p1=c(1,2,3);
2008 Mar 17
1
summary of summaries
Hi,
I have a few hundreds files with numerical information of different length
but with the same column structure. I use the following code to get summary
statistics
fplist <- list.files(pattern=".*analysis")
for (fp in fplist){
x2 <- read.delim(fp)
summary(x2)
}
Summary gives something like:
summary (x2)
V1 V2
2001 Dec 07
1
densityplots
Dear all,
I am new in R so please forgive the "dumb" question...
I am used to work with Mathematica where it is possible to display a 2D array as a collection of shaded squares. The gray level there represents the value of the array element. It is basically a projection of a 2-dimensional histogram.
After a lot of reading I still haven't found that kind of function.
I would be
2007 Nov 02
1
counting with factors
Hi there,
I have something that appears to be a factor called drug:
Typeof(drug) => Integer
As.numeric(drug) gives a long list
Levels(drug) gives a long list, too.
Now I want something like the summary function does:
I want to count how often each level occurs in the given vector.
My problem is that summary gives me a list with counts that is incomplete
and adds the
2008 Jan 04
1
R command line arguments
Hi,
I would like start R in BATCH mode and submit my own parameters. Or in other
words, I would like to specify variables from the command line and execute a
script using those.
I have been looking at commandArgs and calling R from the command line under
bash:
R CMD BATCH --no-save --args -filename="$filname" -- r-test.R r-test.Rout
The problem here is, if $filename contains
2005 Jan 31
2
how to move x-axis labels down
Hi,
In the code below, the labels I put on the x-axis are too high (they cross the
axis). Can anyone tell me how to move them down? I've tried adj=, padj=, mar=,
and various other things, but cannot move them down.
Thanks.
-Ben
labs <- paste('sample', 1:10)
plot(1:10, xaxt='n', xlab='')
axis(1, at=1:10, labels=labs, padj=1, las=2) # las is a par() parameter
2010 Mar 16
3
boxplot, vertical position of x-axis labels
hello,
i can't figure out how to change the vertical position of my x axis labels..
boxplot(c(1:12)~c(rep("1",6),rep("2",6)),at=c(1,2),
col=c(0,"grey"),las=1,xaxt="n")
### i put paragraphs in the x-labels because of limited horizontal space
axis(1,at=c(1,2),adj=1,labels=c("Salix
Scrub","Tall
Forb"))
...the labels are one line
2002 Jan 30
1
Rotation of axis labels
Hi all,
I can I rotate the x-axis labels 45 degree in clockwise direction? I`ve
tried
> axis(1, ..., las=2)
but this gives labels vertical to the axis, and las=0 or las=1 always
parallel axis labels.
Thanks, Sven
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info",
2010 Jul 08
1
x-axis labels for barplot of zoo object
Hi
Let's assume, I have a dataset of 1000 datapoints, which represent daily
recordings of a measurement.
They are stored as a ts object (see example below)
Now I want to represent them as a barplot. I found the barplot in the zoo
package, but I have one problem: the x-axis labels. I would like to have the
x-axis labels as either years only (located at the beginning of the year),
or
2012 Feb 20
1
question on axis labels
Hi All,
I'm trying to label my plot axis with times (HH:MM) that correspond to a numeric index (values 0:6) for my time variable. I'd like to plot "08:00", "12:00", and so on, instead of 0 through 6.
I have used the following line of code:
axis(1, 0:6, labels=c("08:00", "12:00", "16:00", "20:00", "24:00",
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
2010 Mar 01
3
setting the steps for x axis labels on plot
Hello, I'm new to R, I've been working with it for the last 2 weeks. I
am plotting some data and not getting the labels on the x axis I am
expecting on my plot.
my code reads
#hours in the day
h <- c(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23)
#hp is a data frame with a pivot table of 25 columns (label and data
for 24 hours)
plot(h, as.matrix(hp[1,2:25]),
2007 Mar 22
1
Labelling a second y-axis
Hi,
I am using the following code as an example function to create
multiple y-axes on one plot. I have it working fine however, I can't
seem to add a label on the second (right) axis. I have tried adding
ylab="y2" in the axis call but, that didn't work; any ideas?
Thanks,
Jesse
Code:
function() {
par(las=1,xaxs="r",mai=c(1,0.75,1,1))
x<-1:10
y1<-x
2017 Nov 13
2
Building dovecot 2.2.33.2 is broken with uclibc-ng
Hi,
this commit
https://github.com/dovecot/core/commit/c9d76e2baf653fa5504d6849e5c1aae32eff3c53
added code which can not be compiled with uclibc-ng 1.0.26 using buildroot:
make[3]: Entering directory '/home/bernd/buildroot/br4/output/build/dovecot-2.2.33.2/src/lib-test'
/bin/bash ../../libtool --tag=CC --mode=compile