Displaying 20 results from an estimated 10000 matches similar to: "plot, y-axis, uneven scale???"
2012 May 02
5
uneven vector length issue with read.zoo?
I truncated and simplified my code and the read in data that I'm working with
to isolate the issue. Here is the read in data and R script respectively:
http://r.789695.n4.nabble.com/file/n4604287/test.csv test.csv
http://pastebin.com/rCdaDqPm
Here is the terminal/R shell output that I hope the above replicates on your
screen:
> source("elecLoad.r", echo = TRUE)
> #Load
2006 Apr 05
1
Uneven y-axis scale
Dear R-gurus!
Is it possible within boxplot to break the y-scale into two (or
anything)? I'd like to have a normal linear y-range from 0-10 and the
next tick mark starting at, say 60 and continue to 90. The reason is for
better visualising the outliers.
All the best,
Kare
[[alternative HTML version deleted]]
2011 Feb 09
2
heatmap-how to change the order of the rows (genes)
Hi,
I have a question about the heatmap dendrogram in R. I loaded my data
matrix in command heatmap(), and it gave me a heatmap accordingly, and the
rows (genes) also were clustered accordingly. But now I don't want the
genes clustered in that way, I have a new order of these genes, and want the
rows of the heatmap are drawed as the order I give. Could anybody help me
on that? Thank you!
2012 Mar 15
2
how to bind uneven column (not equal length) into matrix without recycling values
i have
> x
[1] 1 2 3 4 5 6
> y
[1] 34 5 6
> z<-cbind(x,y)
> z
x y
[1,] 1 34
[2,] 2 5
[3,] 3 6
[4,] 4 34
[5,] 5 5
[6,] 6 6
i don't want recycling, instead can we put NA /0 like below> z
x y
[1,] 1 34
[2,] 2 5
[3,] 3 6
[4,] 4 NA
[5,] 5 NA
[6,] 6 NA
& want distance matrix
--
View this message in context:
2011 May 05
6
Averaging uneven measurements by time with uneven numbers of measurements
I have a new device that takes measurements anywhere from every second, to
every 15 minutes (depending on changes). The matrix has a date, time and Y
column (Y is the measurement). For three days it is 25,000 rows. How do I
average the measurements by every 30 minutes so my matrix is 48 rows per
day? I have been working on this and cannot figure out a simple method. Any
ideas? Thank you.
-----
In
2011 Mar 16
4
fetch uneven
Hi
I have a vector m:
m
[1] "ABC transporters"
[2] "2"
[3] "Acetyl-CoA"
[4] "1"
[5] "Energie"
[6] "1"
[7] "FAD Biosynthese"
2011 Oct 31
1
how to remove the redundant rows of a matrix
Hi,
I have a matrix like this, two columns: a, b
a b c1 21 c2 19 c2 20 c2 20 c4 25 c5 18 c5 18
how to prepare a new matrix removing the rows with repeated units in b
columns, like there are two 20 and two 18 in b column (others are unique in
b col). I wanna a pure matrix with one 20 and one 18.
Thanks a lot!
Yan
[[alternative HTML version deleted]]
2012 Nov 14
2
vectorized plotmath expressions via substitute()
hi all - i've seen versions of this question before, but none seem to get
directly at my solving my (probably very simple) issue:
i simply want to annotate the tick marks on an axis with (superscripted)
10^x notation, and tried this:
axis(1, at = axTicks(1), as.expression(substitute(10^foo, list(foo =
axTicks(1))))
thinking the as.expression/substitute would create the appropriate
2011 Feb 01
3
R string help
Dear R guru:
If I got a variable
aaa<- "up.6.11(16)"
how can I extract 16 out of the bracket?
I could use substr, e.g.
substr(aaa, start=1, stop=2)
[1] "up"
But it needs start and stop, what if my start or stop is not fixed, I
just want the number inside the bracket, how can I achieve this?
Many thanks
yan
2007 Apr 19
1
Histogram with uneven bins
Hi R-helpers
I would like to produce a histogram with uneven bins (e.g., 0, 1-2, 3-5,
6-10, 10-20, >20) but I would like the resulting bars to be the same width (
i.e., a bar's width would not be proportional to its corresponding bin
size).
Also, the x and y axes of my histograms frequently (almost always, actually)
extend beyond the axis labels (i.e., there are unlabeled bars). I would
2012 Aug 08
1
time series, uneven length
I have 4 univariate time series that I believe have correlation between them,
I want to create a VAR model between them all.
However I have an issue as 3 of them are the same length, however the 4th is
smaller. meaning that i cannot use the 4th variable , is there anyway R can
get round this issue?
> length(tstemp)
[1] 746
> length(tspres)
[1] 746
> length(tswind)
[1] 746
>
2003 Jun 19
1
Import time series data with uneven dates
I am trying to import a file of daily index closing prices in business time
which excludes weekends and holidays so deltat is not constant. My file
looks like the following:
date close
2003.0055 47.05
2003.0082 45.71
2003.0164 43.45
2003.0192 42.96
2003.0219 44.56
2003.0247 42.99
2003.0274 42.28
2003.0356 41.74
etc.
>From what I saw in the EuStockMarkets file, it appears
2007 Aug 24
1
uneven list to matrix
Hello,
I am sure I am not the only person with this problem.
I have a list with n elements, each consisting of a single column matrix
with different row lengths. Each row has a name ranging from A to E. Here
is an example:
alph[[1]]
A 1
B 2
C 3
D 4
alph[[2]]
A 1
C 3
D 4
alph[[3]]
A 1
D 4
E 5
I would like to create a matrix from the elements in the list with n
columns such that the row names
2012 Sep 25
3
error on uneven recycling?
Is there some reason why
> (1:2)+(1:3)
[1] 2 4 4
Warning message:
In (1:2) + (1:3) :
longer object length is not a multiple of shorter object length
can't be made into an error? I realise it was there in S-PLUS, but
since it produces a warning there can't be many examples on CRAN or
Bioconductor using it, and I can't think of any situation where it
would be used deliberately.
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
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 ~
2008 May 26
1
X-Axis Problem with Multhist Plot
I am creating a side-by-side histogram using "multhist" of PLOTRIX.
However, I can't seem to control the X-axis.
It yields the following X points in the axis:
1 3 5 7 9 13 17 21 25 29 33
with uneven spacing between x-ticks (see attached file).
Especially I want to create a bar for every x-axis (1,2,3,4...36),
now not every x-axis has a bar.
Is there a way to alter my following
2010 Nov 28
2
Comparing two functions
Hi. I am new to R and facing a problem that I cannot solve.
I am writing some basic functions. Then I would like to have a master function that allows me to call one of the functions which I created, but I cannot figure out how to do so.
Below is an example. The functions rnormIra and runifIra both seem to work fine. I do not get an error message when entering the definition of the master
2005 Jul 12
3
using its to import time series data with uneven dates
Good day:
I am trying to use
readcsvIts("nwr_data_qc.txt",informat=its.format("%Y%m%d%h%M
%Y"),header=TRUE,sep="",skip=0,row.names=NULL,as.is=TRUE,dec=".")
to read in a file (nwr_data_qc.txt) that looks like this:
Time Y M D H Min CO2
2000.18790 2000. 3. 9. 18. 30. 373.60
2000.20156 2000. 3. 14. 18. 30. 373.34
2012 Mar 13
4
Converting factor data into Date-time format
Dear R-user,
I have read a dataset from .csv file into R. This dataset includes one
column containing some data in 'date and time' format, e.g. 'dd/mm/yyyy
hh:mm'.
These data were automatically read and saved as 'factor' in R. When I was
trying to produce some plots (such as time series) with the above 'date and
time' on x-axis, it caused some disodering problem,