Displaying 20 results from an estimated 4000 matches similar to: "Rescaling a column in a matrix based on a certain rows"
2008 Jun 24
4
Find max of a row in data frame (like Excel)
Hi,
Here's the data we have:
> rs[1:5,]
probe_id f1 f2 f3 f4 M A f
1 A_68_P20002076 2 58 0 0 1.51778114 6.344453 59
2 A_68_P20002775 22 8 15 0 0.43419304 5.488819 59
3 A_68_P20005791 43 3 0 0 0.05698666 9.830594 59
4 A_68_P20005805 11 34 0 0 1.71076835 6.624038 59
5 A_68_P20006729 16 44 0 0 0.85498261 6.044229 59
I want rs$f be the max of f1, f2, f3,
2008 May 06
2
Concatenate a vector into a string, only using distinct component
I'm trying to use combine c('a','b','c','a','c') into 'a, b, c', the order
does not matter.
paste(c('a','b','c','a','c'), collapse=', ') yields 'a, b, c, a, c'.
Any idea?
--
Regards,
Anh Tran
[[alternative HTML version deleted]]
2008 Jun 19
2
Draw curve for histogram
Hi all,
What parameter should I feed to the hist function to draw a line, not bar
graph for a histogram? Smoothed line would be great too.
I've looked at curve() for normal distribution but it's not what I need. I
need some curve on top of the histogram (fit to the actual data). Just as a
way to illustrate, rather than bargraph.
Thanks
--
Regards,
Anh Tran
UCLA NeuroOncology Lab
2008 May 06
2
Print table data on to a plot
Hi,
Is there away to print a short table out along side with a plot?
I'm thinking about doing a
par(mfrow = c(1,2))
Then, the plot is on one side, summary result on the other.
Is there any quick way to print out a data.frame in table format? Thanks
--
Regards,
Anh Tran
[[alternative HTML version deleted]]
2008 Jun 21
2
Scatter plot transparency
Hi all,
I'm putting a few plots together and wondering what format would be best to
export a few scatter plots to Illustrator to make a figure. I'm thinking
about overlaying some plot in Illustrator, so the export file type has to be
transparent for Illustrator (version 10).
I tried PNG and TIFF, but it does not seems to have transparency that is
recognized by Illustrator (or Photoshop for
2012 Feb 01
2
Problem with xtable- rescaling a table
Dear R users,
I am new to Latex and I am using the R package xtable to generate tables.
I want to produce a table that is very long. in the landscape format, but
I would need to rescale the table so that it fits in the page. xtable
enables me to have the landscape format, but I cannot rescale it, and there
seems to be a problem, if I use scalebox in Latex on my output produced
with stable and the
2011 Jul 25
1
Rescaling columns in a multi-plot layout
Dear all,
I am trying to create a 6-plot layout - 3 rows and 2 columns - so that
only the top two plots have variable widths, all else with their default
setting. Using
"layout(matrix(c(1,2,3,4,5,6),3,2,byrow=T),widths=c(5,2))" rescales
column #2 of all three rows, whereas I would like to rescale that of
only row #1. Is there a simple way of doing this?
Thanks,
Manojit
2000 Dec 28
1
some (may be related) problems with windows(rescale=) (PR#794)
###############################################################################
Before reporting 4 problems with windows(rescale=) I want to congrat on R1.2 and to thank r-developers for quickly adding the rescale workaround to the windows version.
Happy New Year
Jens Oehlschlaegel
###############################################################################
2006 May 13
2
windows( ... ,rescale="fixed") bug (PR#8857)
Full_Name: Gerhard Thallinger
Version: 2.3.0; 2.2.0
OS: Windows XP
Submission from: (NULL) (212.183.54.87)
Invoking windows() with the parameter rescale="fixed" followed by plot.new()
or any other plot command causes very often the following error:
windows(width=7, height=7, rescale="fixed");plot.new()
Error in plot.new() : outer margins too large (fig.region too small)
2006 Jun 20
1
rescale the data into unit square?
Dear Rusers,
Recently, i saw the sentence "rescale the data into unit square" for
several times. Could anybody tell me what it means,and give an example?
Thanks very much!
--
Kind Regards,
Zhi Jie,Zhang ,
[[alternative HTML version deleted]]
2012 Oct 31
3
Cannot rescale a constant/zero column error.
I am trying to run the R Script below, I have actually simplified it to just
this part that is causing issues. When I run this script I continue to get
an error that says "cannot rescale a constant/zero column to a unit
variance". I cannot figure out what is going on here. I have stripped down
my data file so it is more manageable so I can try to figure this out.
The data.txt file
2000 Dec 28
0
some (may be related) problems with windows(rescale=) (PR#795)
If these things bother you, could you please supply fixes? For some reason
you omitted the part of the help page dealing with one of these (which is
as documented), and I also think you are confusing `plot' and `device'
sizes. The latter will be the displayed device surface, I believe.
Nothing on the help page suggested that the fine details of the R read-only
parameters will be as you
2008 May 12
5
Format integer
Hi,
What's one way to convert an integer to a string with preceding 0's?
such that
'13' becomes '00000000013'
to be put into a string
I've tried formatC, but they removes all the zeros and replace it with
blanks
Thanks
--
Regards,
Anh Tran
[[alternative HTML version deleted]]
2001 Jan 10
0
Re: some problems with windows(rescale=) (PR#794)
Part 1) is basically that the initial rescaling is done if the window is
too large to fit on the screen. That's true and obvious (no scrollbars)
and intentional and on the help page. As ever, you need to report bugs on
what is documented, not what you would like.
This will be changed for 1.2.1, but was several hours' work. I have also
cleaned up the scrollbar behaviour.
Part 2) I just
2011 Jul 13
1
Scaling in SVM
Dear Community!
I'm using the svm method of package e1071 for classifying my data. This
really works fine, but however I have to work after creating the support
vectors and the parameters with unscaled data. So the problem is when I try
to train the classifier with the option "scale=F" the result is quite poor,
so training with scaled data is essential. The rescaling of the support
1999 Apr 27
1
An even more strange win95 browsing problem
Hi,
I posted a few messages a couple of days ago about a strange windows 95
browsing problem with samba-2.0.2, 1.9.17p4 that none of our Windows 95
users can see our Linux shares, but all NT users can see the Linux
shares, and all 95 and NT users can see AIX shares. All of our Linux
and AIX use the save version of samba (I tested 2.0.2 and 1.9.17p4).
Yesterday, I tried to down grade the version
2011 Jan 25
1
how to resize heatmap without rescaling?
I am using R version 2.12.1 on Win XP.
I have done a heatmap with dendrogram using the heatmap.2 function.
The heatmap basically looks like I want it to be, but the labels of the
columns are cut off.
I.e. the textual labels of the columns, although they are not very long
(less than 12 characters), do not fit into the window and can not be read
entirely.
If I manually resize the graphics
2006 Oct 06
1
glm and plot.effects
Dear R-helpers,
I don't see a difference between the following two plots of effect
objects, which I understand should be different. What am I missing?
require(doBy)
require(effects)
data(budworm)
m1 <- glm(ndead/20 ~ sex + log(dose), data=budworm, weight=ntotal,
family=binomial)
m1.eff <- all.effects(m1)
plot(m1.eff, rescale.axis = FALSE, selection = 2, main = 'rescale =
2023 Oct 26
1
Inquiry about bandwidth rescaling in Ksmooth
Apologies in advance if my comments don't help, in which case, no need
to respond, but I noted in ?ksmooth:
"bandwidth
the bandwidth. The kernels are scaled so that their quartiles (viewed
as probability densities) are at ? 0.25*bandwidth." So, could this be
a source of the discrepancies you cited?
Given that ?ksmooth explicitly says:
"Note:
This function was implemented for
2023 Oct 26
1
Inquiry about bandwidth rescaling in Ksmooth
Dear Sir, Madam, or to whom this may concern,
my name is Jan Failenschmid and I am a Ph.D. student at Tilburg University.
For my project I have been looking into different types of kernel regression estimators and corresponding R functions.
While comparing different functions I noticed that stats::ksmooth returned different estimates for the same bandwidth
as other kernel regression estimators