Displaying 20 results from an estimated 100 matches similar to: "How to avoid overlapping labels"
2012 Nov 24
3
How to Label Cases in Scatterplots?
Hi everyone,
i?m trying to graphically display distributions with r and i?m working with
makrodata from the WVS.
the command i?m using is
> plot (Makrodata$v11, Makrodata$v12, xlab="Democracy Score Economist",
> ylab= share religious people")
i?m having an additional variable that identifies respectively labels the
2010 Jun 13
1
add only selected labels using thigmophobe
hi,
I am trying to label data points within a scatter plot using thigmophobe.
While the data set consists of about 3000 points I only would like to label
a subset of these points.
I read the x and y coordinates in from a txt file and define them as:
MLPM1<-log2(Ratio.M.L.G2.PM)
HLG2<-log2(Ratio.H.L..G2.PM)
the names and a corresponding ID are read in from the same txt file as:
2004 Jun 23
2
Covered Labels
Dear All!
How can I cope with overlapping or covered labels (covered by labels
from other data points) in plots?
Martina Renninger
[[alternative HTML version deleted]]
2012 Feb 06
1
ggplot2 geom_polygon fill
Hi everyone,
i've been trying to make a special plot with ggplot2, but I can't get it to
fill the polygon I'd like to see filled so very very much.
I want to display the difference or change in the distribution of the
modified Rankin Scale between two groups. mRS is a scale for disability or
daily activities competence.
It looks like this.
2009 Jun 23
2
values in graph points
Hello,
How to add x values in graph points?
Thanks a lot,
Romildo
x <- c(22.44, 20.14, 15.85, 15.97)
plot(x, type="n", axes=FALSE, ann=FALSE, labels=c(22.44, 20.14, 15.85,
15.97))
par(lwd=1)
lines(x)
points(x, pch=5, bg="grey", cex=1.5)
axis(2, las=1)
axis(1, at=1:4, lab=c("none", "50-50", "80-20", "90-10"))
box()
2009 Apr 04
2
help with formula and data= argument
Sorry for posting this twice, but I still have not solved this problem
and am hoping for some assistance.
I am attempting to write a function that is flexible enough to respond
to the user providing a formula (with a data= argument) or not (similar
to plot(x,y) versus plot(y~x,data=data)). I have found a method to work
with this in a simple case but am having trouble determining how to
2009 Jul 24
2
Stting non-overlaping text positions
Dear List
I am having problems to set text labels in a scatter plot. At some areas dots
are close and labels overlap and texts cannot be read. I have too many dots
to adjust this manually. Is there any function that will calculate the label
offsets to avoid this overlapping problem?
Thanks
Ana
--
Ana Conesa
Bioinformatics and Genomics Department
Centro de Investigaciones Principe Felipe
2008 Jun 08
1
label points on a graph
Hello everyone,
I have a plot and I am wanting to label points as 1 through 20
I have the following code for the plot:
dat<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt",header=T,row.names=1)
file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt")
2009 May 20
2
arrangement of crowded labels
Dear R users
I'm looking for algorithms that assist in spreading out crowded labels, e.g.
labels of points in a scatter plot, in order to obtain a nicer visual
appearance and better legibility.
I'm probably just stuck because I didn't find the right key words for a
successful search on the R websites or in the mailing list archives.
Any hints are appreciated.
Thomas Zumbrunn
2012 Jun 29
3
how to add the sample number in the hist figure
hi,R-users:
Now I plot some data with the name(aveobsdata) in column , How can I add
the
some number(e,g. the sample number) in each of the column?
plot(aveobsdata,type='h',lwd=line_width,col=line_col,main=titleinfo,xlab=xxlab,ylab=yylab,xaxt
= "n")
axis(1, at = 1:nums, label = name)
--
2008 Feb 25
3
Avoiding overplotting of text.
Hi all,
I am plotting some data, and use text() to get variable names next to
points on the graph. What is the best way to make sure that these text
labels are readable and not overlapping when two datapoints are close?
I've tried using jitter(), but the effect is random and doesn't always
give a good result.
Any suggestions would be most appreciated.
Best regards,
Gustaf
Example:
2007 Dec 03
3
overlapping labels
Good evening,
I am trying to add labels to the point of a simple plot, using the
text() function; the problem is that sometimes, if two points are too
close to each other, labels overlap and are no longer readable.
I was wondering whether there are options that I can use to prevent this
overlapping (by, for example, placing labels alternatively above and
below the plotted curve), or whether I
2010 Jan 26
3
Graph color
Hi all I want to apply different colors on a simple plot:
If I type par(br="gray") before a plot it puts all the image in gray but
(imagine I run a simple plot) want to let the centrall box (where the dots
are plotted) in white or image in lightblue.
Can anyone guide me to apply this second step (make the box where the series
are plotted in different colours).
Thanks in advance.
2008 Mar 10
0
[ca package] access to any x/y in mjca function
Hi,
I would like to extract x,y from mjca function in ca package to be able to
draw other graph types.
For example for simple mca function from MASS I can do the following:
-------------
anydata.mca <- mca(anydata, nf = 2, abbrev = TRUE)
x <- anydata.mca$rs[,1] #that is what I can 'extract'
y <- anydata.mca$rs[,2]
plot(anydata.mca) #standard plot
library(lattice)
2008 Mar 09
0
[ca package] how to extract x,y from mjca function
Hi,
I would like to extract x,y from mjca function in ca package to be able to
draw other graph types.
For example for simple mca function from MASS I can do the following:
-------------
mydata.mca <- mca(anydata, nf = 2, abbrev = TRUE)
x <- anydata.mca$rs[,1] #that is what I can 'extract'
y <- anydata.mca$rs[,2]
plot(anydata.mca) #standard plot
library(lattice)
2007 Feb 16
2
R implementations of scatterplot/map labeling algorithims?
Dear R community
In a current paper, I'm (briefly) considering the topic of producing
scatterplots or maps with point labels positioned in such a way as to
minimize label overlap and occlusion. This is a topic with a large, but
scattered literature. In CS, it is considered NP-hard, but there are
a variety of approximate solutions. The most complete bibliography I've
found is
the
2012 May 08
0
plot mjca lambda = "adjusted"
Dear community,
First of all, apologies, I'm pretty newbie, and maybe have not truly
understood this multiple correspondence analysis.
I have 9 categorial variables with 15, 12,12,7,9,11,8 ,4 , 31 levels
respectively; that is 109 levels.
(*By the way, is there any problem because of having different levels at
each factor in the matrix of data ??*)
I want to know which are the levels
2009 Feb 05
0
plotrix::thigmophobe could usefully coerce to numeric...
thigmophobe.labels() fails with error when supplied with an array
resulting from tapply (example below).
The error originates in thigmophobe()
I know the help page says 'numeric vector' but it would be kind of nice
if it worked with numeric things of class array too. I think it would
need no more than a couple of as.numeric() calls in thigmophobe itself,
or (simpler but slightly less
2010 Nov 15
2
Need help with pointLabels()
Hello R-list,
I am plotting a weighted linear regression in R. The points on my chart are
also scaled to sample size, so some points are large, some are small. I have
figured out everything I need using the plot() function: how to plot the
points, scale them by sample size, weight the linear regression by sample
size, plot that line, and plot the labels for the points. However, although
the
2007 Aug 31
2
Automatic anchors for text boxes
Hi All,
I'm struggling to add text automatically to plots. I have a series of
scatterplots that I have stored in a script because the underlying data
changes often and the plots need to be regenerated. I use the scatterplot
function (defined in Rcmd, I believe). When one of the variables is a
factor, a boxplot is drawn over the scatter of the other variable. In the
case where x is a