Displaying 20 results from an estimated 4000 matches similar to: "Displaying Equation With Numerator and Demomenator On A Plot..."
2009 Jun 03
1
Would like to add this to example for plotmath. Can you help?
Greetings:
I would like comments on this example and after fixing it up, I need
help from someone who has access to insert this in R's help page for
plotmath.
I uploaded a drawing
http://pj.freefaculty.org/R/Normal-2009.pdf
that is created by the following code
http://pj.freefaculty.org/R/Normal1_2009_plotmathExample.R
This will be a good addition to the plotmath help page/example.
2006 Mar 05
2
plotting partial deriviatives
Dear R Helpers:
I am trying to annotate a plot. The following code snippet works, but it is
kind of a kludge since it adds the partial derivative symbols after creating
the plotmath frac(). Is there a more elegant way to write a partial
derivative?
dev.off()
plot(NA, xlim=c(-3,3), ylim=c(0,1.6), xlab="", ylab="", tck=-0.015)
text(1.6, 1, expression(paste("slope =
2024 Feb 02
1
gathering denominator under frac
... or if I understand correctly, simply
expression(frac(additive ~ HCO[3]^"-",
true ~ HCO[3]^"-" )))
Cheers,
Bert
On Fri, Feb 2, 2024 at 3:06?AM Rui Barradas <ruipbarradas at sapo.pt> wrote:
> ?s 10:01 de 02/02/2024, Troels Ring escreveu:
> > Hi friends - I'm plotting a ratio of bicarbonates i ggplot2 and
> >
> >
2008 Aug 25
1
Displaying Equations in Documentation
I'm currently working on writing up some documentation for some of my
code, but am having the darndest time coding in equations. For
example, the equation in the following:
\details{ Calculated the R Squared for observed endogenous variables
in a structural equation model, as well as several other useful
summary statistics about the error in thoe variables.
R Squared values are
2006 Mar 06
3
how to make plotmath expression work together with paste
Recent questions about using plotmath have renewed my interest in this question
I want to have expressions take values of variables from the
environment. I am able to use expressions, and I am able to use paste
to put text and values of variables into
plots. But the two things just won't work together.
Here is some example code that shows what I mean.
plot(NA,xlim=c(0,100),ylim=c(0,100))
2006 Oct 05
2
Writing Text into Plots
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I have a simple question on the text() method in plots, e.g.:
text(3,4,adj=1,cex=1.0, expression(alpha == beta))
I know there exists a lot more like frac(), etc which could be used for
expression. But a help(frac) doesn't return any results - where do I
have to look for a documentation of possible text commands?
More in detail I'm
2024 Feb 02
1
gathering denominator under frac
?s 10:01 de 02/02/2024, Troels Ring escreveu:
> Hi friends - I'm plotting a ratio of bicarbonates i ggplot2 and
>
> ylab(expression(paste(frac("additive BIC","true BIC")))) worked OK - but
> now I have been asked to put the chemistry instead - so I wrote
>
>
2024 Feb 02
1
gathering denominator under frac
Hi friends - I'm plotting a ratio of bicarbonates i ggplot2 and
ylab(expression(paste(frac("additive BIC","true BIC")))) worked OK - but
now I have been asked to put the chemistry instead - so I wrote
?ylab(expression(paste(frac("additive",HCO[3]^"-","true",HCO[3]^"-"))))
- and frac saw that as additive = numerator and HCO3- =
2007 Jan 10
2
prime in expression in plot
I want to write something like (LaTeX style)
b_{norm}=\frac{F\prime(0)}{R\prime(0)}
how do I add the "prime" (first derivative) to a R-plot? The help of
"plotmath" just talks about "partialdiff". Can you complete this
command?
text( 30,0.05,labels=expression(b[plain("norm")]==frac(F(0),R(0))) )
Thanks,
Thomas
2005 Mar 17
1
kernlab sigest
hello,
I have the following problem setting parameter 'frac' in the sigest
function of the kernlab package.
## executing the ?sigest example:
library(kernlab)
data(spam)
srange <- sigest(type~.,data = spam)
## works fine...
## setting 'frac' explicitly
## (in this case even to the default of .25)
options(error=recover)
srange <- sigest(type~.,data = spam, frac = .25)
##
2001 Sep 27
2
ugly in plotmath: frac(1, sqrt(...)) (PR#1101)
Sometimes (dependent on device and settings of 'cex' and 'lwd') the line
of a square root symbol plottet in the denominator of a fraction appears
to be in or above the line of the fraction.
Examples:
### Choose one of these:
# pdf("test.pdf", height=6, width=8)
# bmp("test.bmp", width=1100, height=800, pointsize=12)
# bitmap("test.tif",
2010 Jan 29
1
Plotmath: suprscript on scalable delimiter?
ComRades,
How do you put a superscript on a scalable delimiter?
I want to put 'b' as the power of the expression in the following plot:
t <- 1:25
K <- 0.2
y <- ((1-exp(-K*t))/(1-exp(-K*t)*exp(K)))^3
plot(t,y,"l",main="K=0.2, b=3")
text(15,5,expression(bgroup("(",frac(1-e^-Kt,1-e^-Kt*e^K),")")))
Plotmath examples in demo(plotmath) do not
2009 Mar 31
1
Problem with mathematical expression and loop
Hi to all
I use a loop to plot 9 different histograms of 9 different
transformations of one dataset (x).
I want to label the histograms with the mathematical expression of each
transformation (e.g. x^3). For that I've prepared a vector with the
labeling names for "expression".
> trans.expr <- c("x^3", "x^2", "x", "frac(1,x)",
2010 Feb 08
2
object 'xxx' not found
The following line of code seems fairly straight forward, yet it is kicking
back an error message:
for (i in
1:length(mean.natveg.frac)){month.observed[i]=as.numeric(names(mean.natveg.frac[i]))%%12}
Error message:
Error in month.observed[i] = as numeric(names(mean.natveg.frac[i]))%%12 :
object 'month.observed' not found
Seems like its not found because I'm trying to define it. Also
2013 Jun 19
1
solving equations symbolically
Dear R People:
I have the following equation:
$1 - \frac{R}{100} = \frac{2y}{10000}$
and I was wondering if there was a way in R to solve for R (no pun
intended).
I'm experimenting with Ryacas, but nothing yet.
Version R-3.0.1 on Windows 7.
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto:
2015 Feb 20
2
isohybrid and ISO images whose size is not a multiple of 2048 bytes vs. VirtualBox
Hi,
my proposal is based on a mathematical proof (see mail
before) and yours is correct too. They cannot but match.
Let's inspect your examples:
Ady wrote:
> ISO size: 1'085'736'960 bytes ( > 1GiB)
This are exactly 132 cylinders of 255x63.
132 is divisible by 4. So there is no padding needed.
> Cylinders (1st attempt)=132
> [...]
> 2120580 / 4 = 530145, so
2008 Aug 15
2
Design-consistent variance estimate
Dear List:
I am working to understand some differences between the results of the
svymean() function in the survey package and from code I have written
myself. The results from svymean() also agree with results I get from
SAS proc surveymeans, so, this suggests I am misunderstanding something.
I am never comfortable with "I did what the software" does mentality, so
I am working to
2008 Dec 31
3
Plotmath with values?
I hope to use the plotmath facility to print titles that mix
math and values of R variables.
The help for "plotmath" has an example, which after repeated
reading, I find baffling. Likewise, I have read the help file
for "substitute" (wqhich seems to be needed) without ever
understanding what it does, other than being used in some magic
incantations.
I would like to do
2009 Aug 20
1
lattice xyplot strip colors and location
Hi all,
I've been trying (unsuccessfully) to modify an xyplot I created using the lattice package. I would like to change default strip colors and locations.
I started with numeric data in 4 columns, which look like this:
0.25 2 1 32
0.25 2 2 30
0.25 2 3 27
0.25 2 4 23
0.25 2 5 17
0.25 3 1 30
0.25
2009 May 16
1
maxLik pakage
Hi all;
I recently have been used 'maxLik' function for maximizing G2StNV178 function with gradient function gradlik; for receiving this goal, I write the following program; but I have been seen an error in calling gradient function;
The maxLik function can't enter gradlik function (definition of gradient function); I guess my mistake is in line ******** ,that the vector ‘h’ is