Displaying 20 results from an estimated 300 matches similar to: "Table/Frame - output"
2017 Sep 18
2
pheatmap: incomplete figure
Dear R Community,
I tried to generate heatmap for a matrix of 1500 columns by 106 rows using the following R script:
> pheatmap(tf.vs.DE.1.removeAllZeroCol, fontsize=3,border_color=NA)
and got the graph (as attached Fig 1)
Since the column labels appear very crowded, I tried to increase the cellwidth to stretch the graph horizontally. The idea was to show the graph section by section, but with
2017 Sep 18
0
pheatmap: incomplete figure
> On Sep 18, 2017, at 9:26 AM, Fix Ace via R-help <r-help at r-project.org> wrote:
> 
> Dear R Community,
> I tried to generate heatmap for a matrix of 1500 columns by 106 rows using the following R script:
>> pheatmap(tf.vs.DE.1.removeAllZeroCol, fontsize=3,border_color=NA)
> and got the graph (as attached Fig 1)
> 
> Since the column labels appear very crowded, I
2012 Oct 17
3
subtotals based on price bands?
I would like to create a subtotal table with custom bands. 
seq1 = seq(0, 100, by = 5) 
seq2 = seq(100, 1000, by = 100) 
Bands = c(seq1, seq2) 
#Prices 
Prices = sample(1:1000, 200, replace=F) 
#corresponding size for the given price above. 
size = sample(1:1000, 200, replace=F) 
How would  I find the subtotal of the size based on a given price falls
within a band? 
--
View this message in
2012 Jun 07
2
flagging values without a loop
For a given hour I want to be able to  add a new column called flag.  The
flag column will flag the highest price in a given hour.  Is there a way to
do this without a loop? 
matrix:
Unit,	Day,	Hour,	Price,	Flag
afd1	1/2/2003	1	1	N
afd1	1/2/2003	1	2	N
afd1	1/2/2003	1	3	N
afd1	1/2/2003	1	4	Y
dcf1	1/2/2003	2	2	N
dcf1	1/2/2003	2	3	Y
dcf1	1/2/2003	2	1	N
dcf1	1/2/2003	2	2	N
dcf1	1/2/2003	2	3	Y
ghg2
2012 Jul 26
2
conditional sum two dataframes
I have two data frames. One with a matrix of months and the other with a
matrix of values. The two dataframes correspond to each other. I would like
to sum up all the values in by month. 
What would be an efficient way to do this? 
a=C(2,3,5,2,3,5)
b=c(2,6,3,2,6,3)
c=c(2,6,7,2,6,5)
months <- data.frame(a,b,c)
a=C(200,345,5435,27456,3343,555)
b=c(288,699,377,234,6354,33454)
2012 Oct 17
3
aggregate function not working?
The aggregate function for some reason will now work for me. 
The error I'm getting is:
"Error in sort.list(y) : 'x' must be atomic for 'sort.list'
Have you called 'sort' on a list?"
agPriceList=aggregate(PriceList$Size, list(PriceList$bandNum),sum)
*Price list dataframe:*
dput(PriceList)
structure(list(Price = c(0, 8.18, 8.27, 10.42, 10.5, 10.6, 11.13, 
2005 May 13
2
help with texi2dvi
Hello,
Does anyone know how to write the files created by the call of
"texi2dvi" in another directory ?
Thanks,
Matthieu
2005 Jan 17
1
Time line plot in R?
Dear R users,
In order to illustrate the possible effects of events on variables 
plotted against time, I would like plot a time line of events along side 
the plot of the variables.
The x-axis should be some time unit; the y-axis should be the variable 
of interest; the time line should be plotted below the graph along the 
same x-axis scale.
As I have many variables and different events
2012 Jun 01
1
plot background - excel gradient style background ?
Is there away of putting an excel style gradient background?  I want to have
dark blue in the middle and shad to white on the top and bottom.
--
View this message in context: http://r.789695.n4.nabble.com/plot-background-excel-gradient-style-background-tp4632138.html
Sent from the R help mailing list archive at Nabble.com.
2012 Jul 03
1
remove loop which compares row i to row i-1
I would like to remove a loop to speed up my code. 
I want to remove a loop which references the last row. 
In general I want to a remove a loop which looks something like this:
for 2 to number of rows in a matrix do{
if indextrow-1 is < currentIndexRow then do something. 
}
My R code:
    for (i in 2:length(tUnitsort$Hour)){
      ifelse(tUnitsort[i,4]>=tUnitsort[i-1,4],(tempMC
2003 Nov 12
3
(no subject)
Hi all,
I am looking for a clever way to create the following graph using R:
I got information on the shares of some subgroups over time (summing up to 1 in each year). The graph I want to create should display the development of the individual shares over time by shading rectangulars for each share in a different color.
Is there a clever of doing this?
Thanks for your help
Stefan
2007 May 11
1
conditional across frames of a data fram
I'm a newbie, so please forgive me:
I have a data frame that includes two long columns of x and y coordinate
values thusly:
...   ...   ...   x       y  ...   ...
...   ...   ...   115   127 ...  ...
...   ...   ...   120   129 ...   ...
...   ...   ...   0       0   ...   ...
...   ...   ...   135   162 ....   ...
ect...
  i need to ask R tell me how many x-y pairs contain coords that are
2003 Feb 24
2
fill prob. in legend
Hi,
I'm trying to construct a legend which has four lines of text and associated 
symbols. The first two symbols need to be normal lines which vary only in 
colour. The second two symbols should have filled boxes. How do I suppress 
the fill boxes in the first two lines?
J.
2012 Nov 05
1
custom function & missing value where TRUE/FALSE needed
I can't figure out why this function wont work. 
#Custom Function used
fallInBand <- function(x){
  #Assume the bands fall go up form 0 to 100 in intervals of 5 then from 100
to 1000 in intervals of 100.
  #returns the location (band number)
  if (is.na(x) == FALSE) {
    if(x < 100) {#bands of 5 
      if((x %% 5) >=0){#falls within the band
        Result = as.integer(x/5)+1
     
2008 Feb 27
2
Add a rectangle behind a plot
Hi there,
   I found one reference to add a reactangle behind a
plot using plot(...,add=T), I tried this but didn't
obtain the desired result.
If a I have the following code:
plot(x,y)
rect(xleft, ybottom, xright,ytop,col='green)
   The rectangle appear on top of the plot.
Any help will be greatly appreciated,
Judith
 
     
2013 Feb 28
1
put strip below the panel (dotplot)
Hello
I am using lattice dotplot and I would like to put the strip under the
panel.
I found the code “strip” is for the strip above the panel, and “strip.left”
for the strip left to the panel.
Please kindly advise how to write the code for the strip under the panel
Thank you
Elaine
	[[alternative HTML version deleted]]
2008 Jul 24
1
plot.dendrogram xlim/ylim
list(...),
I would like to zoom in to the leaves of large trees in a dendrogram
plot. The playwith package allows zooming by passing xlim and ylim
arguments to the plot call (Hmisc does this too I think). But
currently stats:::plot.dendrogram does not accept xlim or ylim. So I
would like to enable that. In place of the existing code chunk:
    xlim <- c(x1 - 1/2, x2 + 1/2)
    ylim <- c(0,
2011 Dec 14
2
plot matrix of characters
Hi, I am looking for options to plot the following type of matrices:
"A" "B" "C" "D"
"A" "A" "C" "C"
"A" "A" "A" "C"
as a image like this: http://www.phaget4.org/R/image002.jpg
2024 Jun 06
1
What is the HEX code for "transparent" color?
On 2024-06-06 4:37 a.m., Yosu Yurramendi wrote:
> What is the HEX code for "transparent" color?
> I've tried "00000000" "FFFFFF00" "FFFFFFFF", but they don't work.
If the other answers don't solve your problem, you should give us some 
context.  Not all graphics functions in R can handle transparency, so 
please show us some reproducible
2008 Feb 21
2
coloring a graph left or right of an abline
Dear R community,
   I would wish to color the background of my histogram differently to the
left and right of an abline... Can you please help?
Thankin you,
Georg.
****************************
Georg Ehret
JHU
Baltimore - USA
	[[alternative HTML version deleted]]