Displaying 20 results from an estimated 10000 matches similar to: ", how to express bar(zeta) in main title in boxplot"
2009 Aug 03
2
boxplot( ) headers with Greek letters, values, and text
Hi -
I've been using the option
main=bquote(paste(mu==.(mu),", ",lambda==.(lambda),", ",truncation==.(truncation),", ",N[T]==.(n)))
to produce a title when using the "plot" command - a title which includes variable names (two Greek)
along with their values.
The above option, however, does not work within the "boxplot" command.
Any
2020 Mar 27
2
Expressions from boxplot() passed to bxp()
Hi,
Is this expected behavior (R-3.6.0)?
dat <- cbind(x = 1:10, y = 10:1)
ylab <- substitute(X[t], list(t = 2))
plot(dat, ylab = ylab) # works (correctly displays ylab)
boxplot(dat, ylab = ylab) # fails
boxplot(dat, ylab = as.expression(ylab)) # works
Thanks & cheers,
M
2012 Jun 22
2
Boxplot with Log10 and base-exponent axis
Dear all,
I would like to (i) produce boxplot graphs with axis in logarithm in base 10
and (ii) showing the values on the axis in 10^exponent format rather than
10E+exponent.
To illustrate with an example, I have some widely spread data that I chart
plot using boxplot() [figure on the left]; the log="y" option of boxplot()
I obtained the natural logarithm conversion of the data and
2006 Feb 10
1
?bquote
?bquote says it returns an expression but, in fact, it typically
(though not always) returns a call object:
> class(bquote(a+b))
[1] "call"
> class(bquote(1))
[1] "numeric"
2010 Jan 04
1
polygamma or Hurwitz zeta function
Hi,
Is there any R library that is capable of handling polygamma function
(Hurwitz zeta function also works)? I am aware of digamma(0 and trigamma(),
but could not find more advanced versions.
I'd appreciate any help.
Hakan Demirtas
2007 Feb 08
1
Zeta and Zipf distribution
Dear R user,
I want to estimate the parameter of ZETA or/and ZIPF distributions
using R, given a series of integer values. Do you know a package
(similar to MASS) or a function (similar to fitdistr) I can use to
estimate the parameter of these distributions using MLE method?
Otherwise do you know a function (which use MLE method to estimate
distribution parameters) that allow me to specify a
2020 Mar 27
0
Expressions from boxplot() passed to bxp()
It's not new anyway. You see the same behaviour with
boxplot(dat, ylab=quote(X[2]))
and it boils down to the use of do.call("bxp", ...) in the internals.
As a general matter, expression() exists to prevent this sort of confusion, e.g., in this construction,
> X <- quote(Y+1); bquote(f(.(X)))
f(Y + 1)
is indistinguishable from just entering f(Y+1), so f has no way of
2011 Mar 31
1
Italicized title from index
Hi all!
I've written a handy script that uses a for loop to allow me to generate a
large number of figures and statistical outputs for a large dataset.
I am using indexing to retrieve a species name for the title of my graphs-
which worked fine. However, I need to italicize these species names.
I originally used the paste function, and had no problems with indexing:
*main=paste("Yield
2006 Jul 30
3
main= bquote(paste("Results for ", beta, "3", ==.(b1)))) doesn't work.
Hi,
I need to plot the beta as the symbol, followed by the index 3 as the title of a graph.
This code works> main= bquote(paste("Results for ", beta ==.(b1))
but I also need the index 3.
I tried (simplified):
>plot(x,y, main= bquote(paste("Results for ", beta, "3", ==.(b1))))
and a few other versions, but I can not get it to run properly.
Any help would
2011 Feb 08
1
Mixed font type in plot title
Hello useRs,
I'm trying to put italics and regular font into a title and am having
some trouble. The title I would like is " /Q. marilandica/ Volume ".
If I use
main=bquote(italic( "Q. marilandica ", " volume"))
I get just " Q. marilandica " in italics in the title.
If i use
main=bquote(italic( "Q. marilandica ,) volume")
I get "
2007 Dec 02
1
speeding up likelihood computation
R Users:
I am trying to estimate a model of fertility behaviour using birth history data with maximum likelihood. My code works but is extremely slow (because of several for loops and my programming inefficiencies); when I use the genetic algorithm to optimize the likelihood function, it takes several days to complete (on a machine with Intel Core 2 processor [2.66GHz] and 2.99 GB RAM). Computing
2013 Apr 25
2
Loop for main title in a plot
Hi all,
I have a problem in including my plot in a loop. Here is a simple example
for one plot:
# Plot simple graph with super- and subscript
a<-c(1,2,3,4)
b<-c(1,2,3,4)
plot(x=a,y=b,
ylab=expression(paste("Apple"["P"])),
xlab=expression(paste("Banana"^"th")),
2010 May 12
2
Whiskers on the default boxplot {graphics}
How are the lower/upper whiskers defined in the default version of boxplot {graphics}?
I tried help(boxplot) and searching www.rseek.org, but I was unable to determine an absolute answer.
I checked out the definition of boxplot according to Wikipedia (http://en.wikipedia.org/wiki/Box_plot), but it also had several approaches
listed for how the whiskers could be determined, so I'm just
2010 Nov 16
2
Integrating functions / vector arithmetic
Hello,
I was trying to build some functions which I would like to integrate over an
interval using the function 'integrate' from the 'stats' package. As an
example, please consider the function
h(u)=sin(pi*u) + sqrt(2)*sin(pi*2*u) + sqrt(3)*sin(pi*3*u) + 2*sin(pi*4*u)
Two alternative ways to 'build' this function are as in f and g below:
coeff<-sqrt(1:4)
2010 Jan 25
2
Two == expressions in bquote
Hi,
I want to put text on a plot containing something like: a = b^2 = <squared numeric value of b> using bquote.
Example:
mu = 5
plot(1:10,1:10)
text(2,8, bquote(delta == mu^2)) # This works
text(2.5,8, bquote(phantom(0) == .(mu^2))) # but is unpredictable
text(2,8, bquote(delta == mu^2 == .(mu^2))) # This doesn't work
The last text function returns the error:
2009 Nov 20
1
How to concatenate expressions
Dear R-users,
I am developing a plotting function, which receives expressions and
character/numerical vectors as part of the many input arguments and
which tries to concatenate them before displaying the result to the
plot. I currently cannot find a way to make this concatenation works. I
have read several posts in the list that solved this problem by pasting
the different elements together
2012 Aug 16
4
Variables and greek letters in a plot title
Hello
This is a problem I encountered repeatedly and I found no answer that made
me really happy. I hope it is not too trivial.
I would like to give the concentration of a substance in a plot title:
5 ug/ml substance
the '5' would be a variable and the ug should be micrograms (with greek
letter mu). It is the mu that causes the problems for me. I failed using
various combinations of
2009 Sep 02
2
combining grid.text, expression and variables
Dear R-users,
I am trying to use the grid.text and expression functions to display
several character strings and plotmath text on a viewport. Some strings
can include a variable portion (PI.limits in the following example),
which I thought could be implemented by combining the bquote and the
expression functions. Unfortunately, my expressions do not seem to be
evaluated. I would greatly
2009 Aug 12
1
A function for plotting a boxplot with added dot and bars (for mean and SE) - please help improve my code
Hello people,
A while back I wanted to plot boxplots with interactions that will have a
dot for the mean of the sample + bars for the SE.
After searching for some code, I found something that did it for one level,
but couldn't find something that will allow for interactions the way the
original boxplot does.
After playing with the original code, I found a way for allowing the boxplot
code to
2009 Jul 04
0
nv50/gallium: fix the zeta formats
A little patch that makes the nv50 mesa driver use the
correct GPU values for the matching depth formats.
There doesn't seem to be Z16, but I added Z32_FLOAT to
show the tile_flags the various formats need in the page
tables.
There'd also be Z32_FLOAT_S8_UNORM (0x19, tile flags 0xe000),
but that's not yet defined in the pipe formats header,
and I actually don't know if it's