Displaying 20 results from an estimated 3000 matches similar to: "modify tick labels in 3D GAM plot"
2011 Oct 27
2
vis.gam zlab problem
I am using the mgcv package to develop vis.gam plots and having trouble
figuring out how to relabel the z-axis (image attached). It is currently
labeled as "linear predictor," but I would like to change it to a different
name. Currently I am using this code:
vis.gam(model1,theta=320,ticktype="detailed",color="gray",nCol=12,
zlab="BCS")
However, when run
2007 Jun 14
1
back-transform predictors for x-axis in plot -- mgcv package
My question is related to plot( ) in the mgcv package. Before modelling
the data, a few predictors were transformed to normalize them.
Therefore, the x-axes in the plots show transformed predictor values.
How do I back-transform the predictors so that the plots are easier to
interpret?
Thanks in advance,
Suzan
--
Suzan Pool
Oregon State University
Cooperative Institute for Marine
2005 Feb 01
0
persp plots axis tick-labels
Hi R-listers,
I am having trouble with persp plotting and I hope some knowledgeable
person can help me. I have searched the help files to no avail. I am sure
there is a way of achieving this simple task. I thought in par maybe but
that seems not to work for 3d plots. Maybe I have missed something.
I read in ?persp that it expects increasing values for both my x and y
axes, and a matrix
2012 Nov 24
0
Plot of 3d stock price density
Hi,
I have thought a lot about my problem and also posted it on
stackexchange, the post can be found here:
http://stats.stackexchange.com/questions/44276/how-to-plot-3d-gbm
but I have got no useful answer, that's why I trry the last
possibility, which is to ask you professional guys.
I want to recreate the following picture with my own code, the picture
can be found in my other post:
2008 May 29
1
Joining uneven datasets
Hello,
I have quite a simple problem that I believe can be solved quite easily. I
have a dataframe as such:
Symbol Date Time Exchange TickType ReferenceNumber Price Size
1 3:YMZ7.EC 12/03/2007 08:30:00 EC B 83916044 13387 9
2 3:YMZ7.EC 12/03/2007 08:30:00 EC A 83916045 13388 1
3 3:YMZ7.EC 12/03/2007 08:30:00 EC B 83916054
2009 Mar 29
2
number of ticks in a persp() plot
Hi, I am trying to specify four ticks (at 0,1,2,3 for the y axis) in a persp
plot but the defaults overrule my specification and I obtain seven of them.
Is it possible to gain full control over them in such a plot? Here is my
code:
matlines=matrix(c(1:7,3:9,3:9,2:8),nrow=7,ncol=4)
2010 Mar 10
0
Color facets by z-level (solved by creating example)
I am having trouble getting my facets colored with "concentric" colors
by z level. This code give a fair representation of my problems
dealing a real dataset
cmtx <- matrix(, nrow=10, ncol=10)
cc <- (row(cmtx)-5)^2 + (col(cmtx)-5)^2
cc
#----------
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
[1,] 32 25 20 17 16 17 20 25 32 41
[2,]
2007 Sep 10
1
persp() problem
I am having some trouble getting the persp() package to change the x
and y axis on a 3d plot. It defaults to the [0,1] interval and when I
try to change it I get errors.
Example:
This works:
------------
D <- c(1,2,3,4,5,6,7,8,9,10)
M <- c(11,12,13,14,15,16,17,18,19,20)
DM <- cbind(D,M)
persp(DM, theta = 40, phi = 30, expand = 0.5, col = "lightblue",
ltheta = 120,
2004 Aug 10
1
persp, array and colors
Dear R-users,
I'd like to plot a three-dimensional surface and at the meantime I'm using
an array. I would like to have the values of my first matrix in the heights
of the plot and the colors of the single facet taking into account the
second matrix.
I hope that the next code will help all of you to understand better my
issue,
Thanks in advance, Giancarlo
############################
##
2008 May 20
1
drawing lines in 3D (rotating them)
Hi the list,
I write a short function to draw lines in 3D, showing then turning.
At some point, I add "delais" to slow down the rotation.
So two questions:
1) I try to find a library to draw animate lines in 3D but I did not
find. That surprise me since it is very simple to do. Did I forget to
look somewhere ?
If it does not exists and I have to use my own function :
2) Is it
2009 Jul 28
1
some QCA questions
Dear Adrian Dusa, others,
I've recently started to learn R in order to use the QCA package because
i think it might offer what other QCA packages don't: possibilities for
quite a few conditions and large n. However, can someone tell me approx.
how much RAM i need to run QCA on set of +/- 400.000 cases and +/- 15
conditions? (or differently: how much time will it take with RAM of a
2009 May 27
2
problem with cbind
Hi All,
I have a file with two columns, the first column has the names of the
patients and the second column has the age. I am looking into creating an
output file that looks like
1-10 10-20 etc
Eric Chris
Bob mat
Andrew
Suzan
Where each column has the name of the patients in a given age category that
is displayed in the header. For example in the output, the first
2011 Jan 12
1
graphics: 3D regression plane
Hello Masters,
wishing you all a great 2011 I was also going to ask if anyone knows a quick
and efficient way to plot a regression plane (z~x*y).
I have tried the regr2.plot{HH} function but it is only an educational tool
and has poor graphical properties.
I also tried to run the following script on a fictitious longitudinal
problem, with poor results
set.seed(1234)
2005 Feb 16
5
Repeating grey scale in graph?
Dear R users,
Could somebody tell me why the grey color ramp is repeated in this
graph, eventhough the ramp values go from 0 to 1? I must be missing
something obvious, but I can not see it!
z <-
c(0.064329041,0.117243316,0.161565116,0.19923015,0.231642175,0.259835539,0.284571226,
0.038507288,0.094184749,0.140959431,0.180803984,0.215159105,0.245096084,0.271412845,
2007 Mar 16
0
How can I place axis annotations away from axis?
Hello Experts
I have the following codes and data for 2 interpolation plots.
http://www.nabble.com/file/7206/3d_plot_data.txt 3d_plot_data.txt
data<-read.table("3d_plot_data.txt", header=T)
attach(data)
par(mfrow=c(1,2))
library(akima)
interpolation<-interp(rr,veg_r,predict)
persp(interpolation,theta = -45, phi = 30, ticktype = "detailed", nticks=4,
cex=0.8,
2011 Mar 18
0
keep color range constant across three persp() graphs
Hi All.
I have created two, 3-D, color graphs using persp(). Z values range from 1
to 100 on the first plot, and 0.5 to 50 on the second plot.
I would like to keep the color range constant between the two graphs, rather
than each graph showing the full range of colors.
So the first graph should go from yellow to red and the second graph should
go from yellow to orange.
Below I present a
2006 Apr 13
1
Working directory
Hi,
I am a new user of "R", I am trying to read my data in.. "Cervixhc.dat" used
to be in a different directory, now it has been moved to "O:\E&s\APC cervix
FINAL (YG,MC,MD)\Manuscript\Data", but when I ran the following program (in
red) I got an error message "Error in setwd(dir) : cannot change working
directory", and "Error in file(file,
2008 Jun 12
1
Problems with mars in R in the case of nonlinear functions
Hi,
I'm trying to use mars function in R to interpolate nonlinear
multivariate functions.
However, it seems that mars gives me a fit which uses only very few
basis function and
it underfits very badly.
For example, I have tried the following code to test mars:
require("mda")
f <- function(x,y) { x^2-y^2 };
#f <- function(x,y) { x+2*y };
# Grid
x <-
2007 Sep 25
0
Announcement: 2008 ASA Computing/Graphics Student Paper Competition
Statistical Computing and Statistical Graphics Sections
American Statistical Association
Student Paper Competition 2008
The Statistical Computing and Statistical Graphics Sections of the ASA
are co-sponsoring a student paper competition on the topics of
Statistical Computing and Statistical Graphics. Students are
encouraged to submit a paper in one of these areas, which might be
original
2008 Oct 17
0
Announcement: 2009 ASA Computing/Graphics Student Paper Competition
Statistical Computing and Statistical Graphics Sections
American Statistical Association
Student Paper Competition 2009
The Statistical Computing and Statistical Graphics Sections of the ASA
are co-sponsoring a student paper competition on the topics of
Statistical Computing and Statistical Graphics. Students are
encouraged to submit a paper in one of these areas, which might be
original