Displaying 20 results from an estimated 30000 matches similar to: "Modifying effect display (effects package)"
2010 Jul 29
1
Colour points in plot according to third variable
Hi,
I am using the plot function to make a simple plot of my data with one
variable against another and want to colour the data points according
to a third variable. The third variable is continuous (Time) and I
want to try two different ways of colouring the data points, either:
Divide time it into three groups and then colour each data point
accordingly eg. 30-60 minutes in green,
2009 Jun 20
1
modifying sound package function plot.Sample
Hi,
I'm trying to modify this function.I want to remove the existing xaxis(the
tick marks and the values below each tick) and make it dynamic so that i can
choose whether i want the xaxis at the top or bottom but i cant seem to
change that.can somebody help me?
plot.Sample <- function(x,xlab=NULL,ylab=NULL,...){
sampletest <- is.Sample(x,argname="'x' ")
if
2003 Apr 29
2
plots
I have two separate questions.
The first is when I use xlab, the labels on my tic marks disappear. Is there
a way to make them reappear? Also, is there a way to make my own labels for
the tick marks?
My second question is, after I have spent a lot of time getting my plot to
look just right, I want to save it to a file, but the only way I seem to know
how to do it is to first use
2010 Jul 06
1
Interpreting NB GLM output - effect sizes?
Hi,
I am trying to find out how to interpret the summary output from a neg
bin GLM?
I have 3 significant variables and I can see whether they have a
positive or negative effect, but I can't work out how to calculate the
magnitude of the effect on the mean of the dependent variable. I used
a log link function so I think I might have to use the antilogs of the
coefficients but I have no idea
2000 Oct 26
0
summary for tick marks
Dear R People:
In case anyone is interested, here are some of the answers
I received regarding tick marks:
plot(0,0)
axis(1, pos=0)
axis(2, pos=0)
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45)
2005 Dec 01
4
suppress tick labels
hello,
is R able to suppress tick labels (not tick marks)? i know there is a way
around this with axes=F and then draw new axes, but it would be easier to
suppress them in the first place.
--
------------------------------------------------
Sebastian Leuzinger
Institute of Botany, University of Basel
Sch??nbeinstr. 6 CH-4056 Basel
ph 0041 (0) 61 2673511
fax 0041 (0) 61 2673504
email
2008 Jun 13
0
Wanted: your examples of logged axes with custom tick marks
Dear all,
I'm trying to improve the default layout of tick marks for log scaled
axes in ggplot2. To this end, it would be really useful to see what
people actually do in practice. If you've ever made a log-log (or
semi-log) plot and customised the location of the ticks, I'd really
appreciate a copy of your graph (if it's publicly available) or a
statement of the range of the
2005 Feb 05
1
Labelling and formatting of graphics
In the output of the code below, I want to do the following:
- get hats over some of the betas
- get the polygons stippled, not coloured grey
- remove the tick marks at the ends of the axes. If I put tick =
false, the whole axis disappears.
betahat <- c(0.04*0:150)
betahatdens <- dnorm(betahat, 3, 1)
plot(betahat, betahatdens, xlim = c(-0.2, 6.2),
2004 Sep 01
1
Tick marks in cloud (lattice)
Hi! Probably a simple question, but I can't get any tick marks in the 3d
scatterplot I created using the cloud function.
The following works to display the three groups using different symbols:
data(iris)
cloud(Sepal.Length ~ Petal.Length * Petal.Width, data = iris, cex = 1.2,
groups = Species, pch = c(16,1,1), col = c("black","black","red"),
subpanel =
2011 Dec 08
0
Label margins in multiple perspective plots per page
Hi folks~
As yet I've been unable to determine how to expand the distance between the
tick marks and tick labels in perspective plots. None of the 'par' setting
appear to be applicable to this (including mfg), and placing multiple plots
per page results in a bit obscurity, with the tick values overlapping either
the tick marks or the axes themselves. The code:
2008 Jun 16
2
in axis() suppressing axis line but keeping tick marks
I've been trying to figure out a parameter that will let you separately
adjust the parameters for the axis line from the tick mark.
In the following example, I would like to suppress the axis line, but keep
the tick marks.
Thanks,
Andrew
foo <- data.frame(x=1:3, y=4:6)
plot(foo$x, foo$y, type="n", axes=F)
points(foo$x, foo$y)
axis(side=1, at=foo$x, lty=0) #would like to figure
2011 Aug 20
0
axis does not show up
Hello everyone,
Using the following script I generated a heatmap for my matrix with
image.plot from the fields package:
library(fields)
as.matrix(read.table("Matrix.txt", sep="\t"))->x
#on left: labels are:
Side<-as.character(x[1,2:ncol(x)])
length(Side)->nS
#on bottom, labels are:
Bot<-as.character(x[2:nrow(x),1])
#remove first row and column
2006 Jun 17
1
Axis line not appearing with axis(tick=FALSE) (PR#8998)
Full_Name: Sean Pieper
Version: 2.3.1
OS: Windows
Submission from: (NULL) (67.188.92.37)
Hi, I am trying to create a qualitative figure for which I don't want tick marks
or numbers, but having some axes would be nice.
If I do:
plot.new()
axis(2,labels=FALSE,tick=FALSE,lty="solid",lwd=1)
I expect this should give me a vertical line on the left edge of the plot, but
nothing
2005 Jan 19
1
forcing all tick labels to plot
I'm trying to find a way to force all the x-axis tick labels to plot,
regardless whether or not they overlap or look pretty.
V is a factor with, say, 4 levels. A call to plot(V) gives a
histogram-like plot, one bar for each level in V. The problem is that
all the label names may not be plotted because some of the names are
lengthy and would tend to overlap if plotted.
I don't care
2004 Oct 27
4
ploting axes and rotating strings
Hello!
I have two question that rose from trying to tacle the same problem in two
differnet ways.
What I want to do is to plot axes (only values or labels, no tick marks) in
such a way that 'cex' can be very small, text can be perpendicular to the
axis (as in axis(las=2) ) and the text is stil at the right position.
Let me demonstrate with a small example:
2005 Aug 14
1
Labels on axes with log scales with lattice
I using lattice to make some plots and I want to make the y-axis on
some of these plots use a log scale. In the following plot:
x <- 1:10
y <- 2^x
xyplot(log10(y) ~ x)
I get tick marks on the y-axis at 0.5, 1.0, 1.5, 2.0, 2.5, and 3.0. I
would rather have just 3 tick marks at 1.0, 2.0, and 3.0 but labeled
10, 100, and 1000.
I know this can be done using the "at" and
2008 Aug 21
0
Problems with creating custom axis labels
Hello,
I've been struggling for more than a few hours with a very simple problem
having to do with axis labeling and haven't had any success searching in the
online resources for the proper syntax. This is the basic task I'm trying
to accomplish:
I want to label the tick marks on a contour graph with .1, .2., .3.... 1 on
both the x and y axes. The default is for them to be labeled
2009 Nov 25
1
tick marks on fold change versus fold change plot
Dear R users,
i try to produce the fold change versus fold change plot
where i have the values for x and y ranging from 0.01 to
100. So i start with
plot(x,y,xlim=c(0.01,100),ylim=c(0.01,100), axes=F).
Then i would like both axes to have tick marks as
c(0.01,0.1,1,10,100) but they should appear equidistant.
How should i manage this?
Thank you for your help,
Alla.
2008 Apr 09
3
Changing default plot behaviour
Hello,
How would I make the default behaviour of my plots produce output such
as the following (i.e. tick marks inside on all axes, labels only on two
(arbitrary?) sides) without needing the five additional commands each
time?
plot(1:10, axes=FALSE)
axis(1, tcl=0.5)
axis(2, tcl=0.5)
axis(3, tcl=0.5, labels=FALSE)
axis(4, tcl=0.5, labels=FALSE)
box()
Thanx, DaveT.
2005 Nov 28
1
Use of axis() in conjunction with plot(..., axes=F)
Colleagues
On occasion, I want to control either tick marks or labels in axes
different from the defaults created with "axes=T" in the plot
command. If I invoke "axes=F" and axis(n), I can do so. However,
the axes produced by axis() differ slightly from those produced
within plot. I have "bty" in par set to "l" (i.e., left and bottom
axes