Displaying 20 results from an estimated 10000 matches similar to: "Math elements in panel headers of lattice plots?"
2006 Apr 19
1
prop.table on three-way table?
Dear list,
I am trying to create a three-way table with percent occurrence
instead of raw frequencies. However, I cannot get the results I
expected:
I have the following table:
> ftable(table( mannerDF$agem, mannerDF$target, mannerDF$manner ))
<snip>
50 bak 0 0 0 0 1 0
pak 0 0 0 0 3 0
sak
2002 Jul 01
1
Substitutions in strings.
Hi all,
Sorry to bother you with the potentially not too bright question, but
since I cannot get it to work, I'll have to ask someone..
I've got this vector:
> token
[1] sal skal skal bak b_r d_ gal kal l_r n_r pak
p_r
[13] sal sl_r sn_r spak sp_r st_r s_ bak d_ gal l_r
pak
[25] p_r sak sl_r sp_r t_ kal n_r s_ st_r sak kal
2011 Aug 12
1
current.panel.limits() of lattice returning NaN limits - why?
Hi,
I need a custom axis function for a plot, but it seems
that current.panel.limits() sometimes returns NaN limits for the plot, which
it much harder to calculate anything sensible.
An illustration:
Given this axis function:
vs.axis <- function(...){
xlim <- current.panel.limits()$xlim
ylim <- current.panel.limits()$ylim
# Debug code
print(list(ylim=ylim,xlim=xlim))
2009 Aug 23
2
Surpress one panel in lattice plot..?
Dear list,
I have a two character vector with two different values in them (two
each, that is). Naturally, when I use these vectors as grouping
factors in a lattice plot, I get four panels.
Now, one of the possible four combinations will never have data, so
one panel will always be empty. So now my question is: can I force R /
Lattice not to print it, and give me only the 3 filled panels?
I have
2011 Jul 10
1
How do I get two levels of grouping for in a lattice panel function?
Dear list,
I'm working on a panel function where I would like to be able to visualise
data grouped by the category of the data, and then also changes in summary
descriptives from one condition to another in the same scatter plot. Like
the figure attached, but with one polygon for each subset of the data set
given by a second variable (with colours still coming from the variable
specified in
2006 Jun 22
1
Two sets of axis in a lattice plot?
Dear list,
Is it possible to have lattice provide two different ordinate axis,
one on the right side and one of the left side of the plot?
I would like to make a xyplot with x both in a linear scale and in a
log-approximate scale.
Thank you in advance.
/Fredrik
2008 Dec 16
1
Change in Lattice bwplot?
Dear list,
Sorry for asking this question, but has something changed in the
syntax for bwplot in Lattice? In an old publication, I used
> bwplot( VOTMS ~gender |type * group,
data=merge(vot,words,by="ord"),
nint=30,
horizontal=F,
layout=c(3,3),
box.ratio=0.8)
which produced a lovelly 3x3 lattice plot with one
2009 Jun 22
1
Lattice group colors?
Dear list,
I have been struggling to find how I would go about changing the
bakground colors of groups in a lattice barchart in a way so that the
auto.key generated also does the right thing and pick it up for the
key.
I have used the "col" argument (which I guess is sent to par()) in a
way so that the colors are like I would want them, but now I guess I
need to know which part part of
2011 Aug 16
3
Constructing an additional key inside of a lattice panel
An embedded and charset-unspecified text was scrubbed...
Name: inte tillg?nglig
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110816/b1fd368c/attachment.pl>
2006 Apr 11
1
Change in lattice dotplot?
Dear list,
I used to have this code in a Sweave document:
sel <- placeDF$Place == "Velar" & placeDF$manner == "Plosive"
table(placeDF$agem[sel], placeDF$place[sel]) -> pd
print(
dotplot(
prop.table(pd,margin=1),
auto.key=list(
space="right"
),
xlab="Relative Frequency",
2005 Aug 08
2
Groups in histograms?
Dear list,
I would like to create histograms for up to three groups, with
distincive colour/pattern, in a trellis panel. However, I have not
been able to find a way to do this. histogram does not seem to have a
group argument.
Please help.
/Fredrik
2009 Jun 17
2
Urgent - odfWeave produces graphs /images with Read-Error
Dear list,
I have been working on a report with around 60 images in it, and
everything has been fine, until now. I find that the image output that
is produced by odfWeave produces images that are NOT readable by
OpenOffice or NeoOffice. I get empty boxes with Read-Error written in
them. While generating the file using odfWeave, I can see them being
generated on the screen, and they all seem fine.
2009 Jun 26
4
How do I get just the two last tokens of each string in a vector?
Dear list,
Sorry for asking this very silly question on the list, but I seem to
have made my life complicated by going into string manipulation in
vectors.
What I need is to get the last part of a sting (the two last tokens,
separated by a space), and of course, this should be done for all
strings in a vector, creating a new vector of exual size.
So,
a <- c(" %L H*L L*H H%",
2001 Mar 19
3
3D plots
Hi all,
I've got at really basic Q for you all: How do I produce a 3D plot in R?
Like the one in the screenshot on the R-project wab-page.
What is the command?
/Fredrik
--
-----------------------------------------------------------------
Fredrik Karlsson, Research Student
Department of Philosophy and Linguistics
Ume? University
S-901 87 UME?
SWEDEN
Tel: +46 90 786 56 84 Web:
2009 Feb 20
2
Grouped bwplots?
Dear list,
I am sorry for asking you this, but I am trying to do again what I
thought I have done before, although this time it does not work.
So, given the data set:
> testdf <- data.frame(grfak=sample(c("One","Two"),size=100,replace=TRUE), panfak= sample(c("Yes","No"),size=100,replace=TRUE), xfak=
2006 Apr 01
2
barchart in black & white with 10 categories?
Dear list,
I am trying to plot a barchart (from lattice) in B & W, with 10
categories per bar.
It seems that the colours are recycled after reachingcategory number
7, which creates a problem interpreting the chart. I therefore have
two questions:
1) How do I get more shades?
2) Does anyone have a theme to share with me with distinctive shades
in Black & White?
Thankful for all the
2008 Mar 05
1
Reversed but positive axis in trellis plots?
Hi,
In my discpipline, it is common to plot one acoustic property on a
positive scale but from top to bottom on the ordinate and the same for
another measurement on the abscissa.
So, the origin of the plot is on the top right of the plot, with
increasing values to the left /down. This is to highlight the
correlation between the acoustic measurement and the position of the
forming structure, for
2012 Jun 04
1
Math labels in .eps files
Dear list,
I have non-ascii labels that I want to include somethow in a .eps file for
inclusion into a LateX document. Is this possible?
What I see is that the (attached) png file looks ok but the .eps renders
all non-ascii labels at the bottom as [..].
I've searched around enough to learn that including math labels in a .eps
is a problem. Hower, is there a solution too somewhere?
2006 May 10
1
Increase the number of plotting characters in dotplot (lattice)?
Dear list,
I am using the dotplot function of lattice and like it very much.
However, in some of the plots, I have more than 7 categories that I
would like to represent by different plotting characters in the graph,
which is a problem. For the categories after the 7th, the plotting
characters are recycled, creating a confisuing graph indeed.
So, my question is: how do I increase the number of
2009 Mar 20
1
odfWeave : change of text style of output is ignored
Dear list,
The output of my embedded code sections come out in the style "ttBlue" wich
is Times New Roman and Blue when I open document. I would like to change
this to a fixed witdth font, smaller and less blue by using style
definitions in the document, but it really does not affect the output.
I tried including
getStyleDefs() -> styl
styl$ttBlue$fontname <- "Courier"