Displaying 20 results from an estimated 1000 matches similar to: "short plots: lwd, margin and postscript behavior"
2011 Nov 22
4
evaluation question
Dear R People:
Hope you're having a nice day.
Here is a character vector:
> yz
[1] "pexp(3.2,rate=1)"
> str(yz)
chr "pexp(3.2,rate=1)"
>
And I would like to evaluate that vector.
I tried:
> eval(as.expression(yz))
[1] "pexp(3.2,rate=1)"
>
But that doesn't work.
Any suggestions would be most welcome. I have a feeling that it's
quite
2019 Dec 31
3
Any significance for m_OneUse in (X / Y) / Z => X / (Y * Z) ??
Dear All,
The InstCombine pass performs the following transformation.
Z / (X / Y) => (Y * Z) / X
This is performed only when operand Op1 ( (X/Y) in this case) has only one
use in future. The code snippet is shown below.
if (match(Op1, m_OneUse(m_FDiv(m_Value(X), m_Value(Y)))) &&
(!isa<Constant>(Y) || !isa<Constant>(Op0))) {
// Z / (X / Y) => (Y *
2017 Jun 16
2
Varios gráficos en una vista en OpenAir
Hola Carlos,
Me parece que timePlot genera los gráficos en un formato diferente.
Al ejecutar grid.arrange genera el siguiente error:
Error in gList(list(list(plot = list(formula = value ~ date | default, :
only 'grobs' allowed in "gList"
Gracias.
Atte.
Novvier Uscuchagua
De: Carlos Ortega [mailto:cof en qualityexcellence.es]
Enviado el: viernes, 16 de junio de 2017 12:38
2023 Mar 22
1
How to test the difference between paired correlations?
Hello,
I have three numerical variables and I would like to test if their
correlation is significantly different.
I have seen that there is a package that "Test the difference between
two (paired or unpaired) correlations".
[https://www.personality-project.org/r/html/paired.r.html]
However, there is the need to convert the correlations to "z scores
using the Fisher r-z
2018 Jan 19
2
Split charts with ggplot2, tidyquant
So the general strategy for getting these into separate panels in ggplot
is to have a single variable that will be your response and a factor
variable that indexes which original variable it came from. This can be
accomplished in many ways, but the way I use is with the melt() function
in the reshape2 package.
For example,
library(reshape2)
plotDF <- melt(SPYdf,
??? ??? ??? ??? ??? ???
2018 Jan 20
2
Split charts with ggplot2, tidyquant
For this kind of control you will probably need to move to base graphics
and utilize the `fig` argument in par(), in which case you would want to
run the plot() command twice: once with your first outcome and once with
your second, changing the par() settings before each one to control the
size.
On 01/19/2018 01:39 PM, Eric Berger wrote:
> Hi Charlie,
> Thanks. This is helpful. As
2018 Jan 21
1
Split charts with ggplot2, tidyquant
Thanks for the reminder about lattice! I did some searching and there's
a good example of manipulating the size of subplots using the `position`
argument (see pp. 202-203 in the Trellis Users Guide:
http://ml.stat.purdue.edu/stat695t/writings/Trellis.User.pdf). This is
not within the paneling environment with the headers like in other
trellis plots though, so you'll have to do a bit
2007 Oct 15
2
clipping off words inside a vector of strings
Hi,
I have a vector of strings (class character) with 6 elements (length
6). I call it 'names'.
"Graham Chapman"
"John Cleese"
"Terry Gilliam"
"Eric Idle"
"Terry Jones"
"Michael Palin"
And I want to turn it into another vector of strings called
'shortnames' with the same length.
The new vector should look like:
2018 Jan 19
0
Split charts with ggplot2, tidyquant
Hi Charlie,
Thanks. This is helpful. As mentioned in my original question, I want to be
able to plot a few such charts on the same page,
say a 2 x 2 grid with such a chart for each of 4 different stocks. Using
your solution I accomplished this by making
a list pLst of your ggplots and then calling cowplot::plot_grid(
plotlist=pLst, nrow=2, ncol=2 ) That worked fine.
The one issue I have is that
2011 Feb 02
1
Function to locate points in 3d octants or points on two axes
[Sorry, resending with a proper subject line!]
Hi Guru's...
I have a set of points that may lie along any of the x, y and z axes
in a Cartesian coordinate system. I am hoping that a function exists
which will determine if any two selected points are on different axes,
i.e, if the one of the points is on x and the other on y or z, not
elsewhere on the x axis. Put another way, I need
2018 Jan 20
0
Split charts with ggplot2, tidyquant
That (the need for base graphics) is false. It certainly **can** be done in
base graphics -- see ?layout for a perhaps more straightforward way to do
it along the lines you suggest.
However both lattice and ggplot are based on grid graphics, which has a
similar but slightly more flexible ?grid.layout function which would allow
one to size and place subsequent ggplot or lattice graphs in an
2009 Feb 11
1
Looping over a matrix passed to .C
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've written a function in R which takes a symmetrical matrix as input and
processes all triplicate combinations of values from the matrix. The function
looks something like:
my_fun <- function(m) {
if( nrow(mat) != ncol(mat) ) {
stop("'m' must be a square matrix")
}
size <- nrow(m)
for(x in 1:(size -2)) {
2007 Jan 25
1
printing problem
Hi everybody,
i have a debian etch with samba 3.0.23c-4 (it's not
the latest version) installed. this server is a member
server (print server) of windows 2003 active directory
domain - i'm using winbind to provide single sign-on.
my problem is that i have a network printer HP Color
Laserjet 2600n and it doesn't print using landscape
orientation, just with portrait orientation. i'm
2018 Jan 18
3
Split charts with ggplot2, tidyquant
Could you provide some information on your data structure (e.g., are the
two time series in separate columns in the data)? The solution is fairly
straightforward once you have the data in the right structure. And I do
not think tidyquant is necessary for what you want.
Best,
Charlie
--
Charles Redmon
GRA, Center for Research Methods and Data Analysis
PhD Student, Department of Linguistics
2017 Jun 16
2
Varios gráficos en una vista en OpenAir
Funciona perfecto!
Gracias Carlos.
Atte.
Novvier Uscuchagua
De: Carlos Ortega [mailto:cof en qualityexcellence.es]
Enviado el: viernes, 16 de junio de 2017 13:46
Para: Novvier Marco Uscuchagua Cornelio <novvier en outlook.com.pe>
CC: r-help-es en r-project.org
Asunto: Re: Varios gráficos en una vista en OpenAir
Hola,
Prueba entonces esto, que sí que funciona...
#-----------------------
2023 Mar 23
1
How to test the difference between paired correlations?
Thank you, but this now sounds more difficult: what would be the point
in having these ready-made functions if I have to do it manually?
Anyway, How would I implement the last part?
On Thu, Mar 23, 2023 at 1:23?AM Ebert,Timothy Aaron <tebert at ufl.edu> wrote:
>
> If you are open to other options:
> The null hypothesis is that there is no difference.
> If I have two equations
1999 Jan 18
1
Program advice
Hi
Starting to use R as a serious tool, I have come across a programming
problem that I can't see the answer too yet. Can someone advise me plese.
The problem is that I want to plot a series of lines which represent short
term growths. All the data is in a single vector and I can indicate
the index via a second vector. In GLIM, if the second vector is a factor,
a single $GRA Size Year
2020 Jan 03
3
Any significance for m_OneUse in (X / Y) / Z => X / (Y * Z) ??
A couple more general comments:
1. There shouldn't be any correctness issues removing one-use checks (the
transform should be safe independently of use-counts).
2. Ideally, you can remove a m_OneUse() from the code and run 'make check'
or similar, and you will see a regression test failure because we have a
'negative' test to cover that pattern. That should make it clear that
2004 Sep 23
7
decompose a correlation matrix
Is there a simple way to decompose the upper triangle
of a correlation matrix to a linear list;
For example:
X Y Z
X 1 2 3
Y 2 1 4
Z 3 4 1
so you get a list like:
xy 2
XZ 3
YZ 4
I suspect you can do it with a matrix transformation, but
that beyond me at present.
Many thanks
Mark
_________________________
Department of Molecular and Human Genetics,
Baylor College of Medicine,
2018 Jan 18
0
Split charts with ggplot2, tidyquant
Hi Charlie,
I am comfortable to put the data in any way that works best. Here are two
possibilities: an xts and a data frame.
library(quantmod)
quantmod::getSymbols("SPY") # creates xts variable SPY
SPYxts <- SPY[,c("SPY.Close","SPY.Volume")]
SPYdf <- data.frame(Date=index(SPYxts),close=as.numeric(SPYxts$SPY.Close),