Displaying 20 results from an estimated 10000 matches similar to: "Vertical text in a plot"
2008 Feb 03
3
Drawing a loess line
Dear all,
To draw a lowess line on a plot was a piece of cake; to draw a loess
line, however, seems not that easy. Is the loess plotting implemented
at all in relation to the loess function, or do I have to look in
add-on packages?
Thanks,
Marcin
2008 Feb 15
2
Controling width of boxes in boxplots
Hi,
I want to add boxplots to a scatterplot:
plot(x,y, xlim=c(80,120),ylim=c(80,120))
boxplot(y,add=TRUE,at=118)
boxplot(x,add=TRUE,at=118,horizontal=TRUE)
How can I control the width of the boxes (say, I'd like them to be of
width 3 in the variables' scales). I've tried the "width" parameter
but failed.
Thanks in advance,
Marcin
2009 Jan 17
1
Dendrogram with the UPGMA method
Hi,
I am clustering objects using the agnes() function and the UPGMA
clustering method (function = "average"). Everything works well, but
apparently something is wrong with the dendrogram. For example:
x<-c(102,102.1,112.5,113,100.3,108.2,101.1,104,105.5,106.3)
y<-c(110,111,110.2,112.1,119.5,122.1,102,112,112.5,115)
xy<-cbind(x,y)
library(cluster)
UPGMA.orig<-agnes(x)
2008 Apr 11
1
EM algorithm for multiple-locus haplotypes frequencies
Hi all,
I've been looking in R for an EM algorithm adjusted for multiple-locus
haplotypes frequencies, but failed in 100%. Has anyone heard of
anything of this kind in R?
Thanks in advance,
Marcin
2010 Feb 25
1
Updating a hexbinplot
Dear all,
Considering this simple example of hexbinplot:
mixdata <-
data.frame(x = c(rnorm(5000), rnorm(5000,4,1.5)),
y = c(rnorm(5000), rnorm(5000,2,3)),
a = gl(2, 5000))
fig <- hexbinplot(y ~ x | a, mixdata)
print(fig)
update(fig, colramp = BTC)
produces a bad (non-updated) legend. Compare it with:
hexbinplot(y ~ x | a, mixdata, colramp = BTC)
What
2011 Jul 08
2
Vertical Labels in plot graph - normally working fine but not on this graph
Hello,
I wonder if someone can elaborate on why in the first graph I am able to set
labels vertical to the x-axis but not in the second.
I tried to select the window but it didnt really help.
Many Thanks
Paolo
ExtAvgCWV = rnorm(200)
ExtAvgDemand = rnorm(200)
ExtGasDays = seq(from = as.Date("2010-8-4", "%Y-%m-%d"), along.with =
ExtAvgCWV, by = "days")
2008 Feb 22
2
Drawing several pictures on a plot
Hi,
I want to draw several pictures on one plot and do as follows:
xy<-matrix(rnorm(100,100,10),50)
op <- par(mfrow = c(2, 2), pty = "s")
plot(xy,ann=F);plot(xy,ann=F);plot(xy,ann=F);plot(xy,ann=F)
par(op)
What I need now is to set the size of the pictures within this plot
since there is too much free space among the pictures, making the plot
look not that pretty. How can I do
2008 May 21
2
Labeling a plot's x-axis with 12 strings, vertically oriented.
Hello,
I really enjoy using R for my plotting. I have a modest plot, containing
24 data points, across 2 lines,12 points each. Ideally, the x-axis would
be labeled with a series of strings, oriented vertically. Here is the R
container holding the Search strings:
> Search
[1] Route To: NCENGR Status: Open
CR Route To: NCENGR
[3] Status: Cancel
2010 Mar 16
3
boxplot, vertical position of x-axis labels
hello,
i can't figure out how to change the vertical position of my x axis labels..
boxplot(c(1:12)~c(rep("1",6),rep("2",6)),at=c(1,2),
col=c(0,"grey"),las=1,xaxt="n")
### i put paragraphs in the x-labels because of limited horizontal space
axis(1,at=c(1,2),adj=1,labels=c("Salix
Scrub","Tall
Forb"))
...the labels are one line
2007 Oct 15
4
boxplot() confuses x- and y-axes (PR#10345)
Full_Name: Bob O'Hara
Version: 2.6.0
OS: Windows XP
Submission from: (NULL) (88.112.20.250)
Using horizontal=TRUE with boxplot() confuses it as to what is an x- or y-axis.
At least, xlim= and ylim= are the wrong way round, log="x" (or "y") and xaxt=
work as expected, I haven't looked at anything else.
Some code to see if you can reproduce the bug (or discover
2012 Feb 12
2
dotplots with error bars
Does anyone have any recommendations for producing dotplots with error
bars? Are there packages available for this? I searched far and wide
and cannot find a suitable option.
I am trying to produce publication-quality figures for my thesis
results. Dotplots (Cleveland dotplots) are a much better form of
summarizing barchart-type data. It does not appear that any of the
main plotting packages in r
2012 Nov 19
3
Plot Area Dimensions
Dear colleagues,
I wish to create a figure with 6 plots arranged vertically with no spacing
between them as they all have a common x-axis.
However, using the code below I'm unable to get the plot area the same size
for each plot.
The bottom plot with the x-axis label is smaller than the others, as is the
top plot which has larger margins.
How can I get the plot region the same size for
2017 Sep 22
2
Lattice stacked barplot vertical bars
Dear all,
I have made a barplot using lattice in which the bars are stacked
horizontally. I would like to stack them vertically, but if I use the
parameter 'horizontal = FALSE' I get the error: 'Error in FUN(X[[i]],
...) : invalid 'type' (character) of argument'. The problem I face is
that, in drawing the bars vertically, the y variable becomes numeric
rather than
2008 Jun 13
1
stretching text vertically
I'd like to stretch a plotted character vertically, to create a
"sequence logo".
Is there a parameter to allow stretching text() output vertically or
squeeze horizontally?
I know about Oliver Bembom's seqLogo library, but this generates a
sequence logo plot using a separate bitmap device. I want to recreate
the sequence logo *inside* an existing plot.
Alternatively, is
2003 May 07
2
plot vertical labels along x axis
I know how to print my own labels along the x axis:
plot(1:10,xlab = "My label", axes = FALSE)
axis(1,at=seq(1,10,by=2),labels=c("first","second","third","fourth","fifth"))
Is there a way to make the labels print vertically along the axis rather than
horizontally? (I'm not sure if this is even going to look all right, but I
2008 May 27
5
[Bug 16120] New: White or black vertical stripes/ fencing on whole display with NV34M
http://bugs.freedesktop.org/show_bug.cgi?id=16120
Summary: White or black vertical stripes/fencing on whole display
with NV34M
Product: xorg
Version: git
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
2017 Sep 22
0
Lattice stacked barplot vertical bars
Hi Luigi
will this do
barchart(
D ~ A|E,
DF,
groups = C,
stack = TRUE,
horizontal = F,
main = "Comparison of test results",
xlab = "Count",
col = c("yellow", "orange"),
par.settings = list(
strip.background = list(col="light grey"),
superpose.polygon=list(col= c("yellow",
2017 Jun 25
3
vertical semi-circles in R
Dear useRs,
I am to teach my students some drawing techniques in R. I started shape of an handle by using the following codes;
>plot(0,0,col="white")
>segments(0,0,0.3,0.3)
>segments(0.3,0.4,0.3,0.3)
>segments(0.3,0.4,0,0.7)
>segments(0,0.7,0,0.6)
>segments(0,0.0,0,0.1)
The coding will draw a section of a handle. Now I want to draw semi circles of radius 0.05
2008 Jun 02
1
Italics in plot main title
Hi,
I am drawing several plots and want to have italics in a main title;
this is easy with expression(). However, I want also to add a value to
it, say n_i, that depends on an ith plot. For this I am using paste().
An example: n_i = 10, 20, 30; I want to draw a plot for each i with
the title: "Relative efficiency for sample size n = n_i", where n
should be in italics, and of course n_i
2008 Jun 14
1
Book on R graphics
Hi all,
I am looking for a book from which one could learn a wide range of
graphics in R, from the very beginning topics to those advanced
(though not necessarily concerned with a particular method or topic).
I don't look for a list of such books since this is on R's web page, I
am rather interested in your opinion on these books - which you would
recommend. The quality of writing and