-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plot.SpdModleTest function Unable to display positive and negative area #57
Comments
Hi, I tested the code with another dateset and I am failing to reproduce the problem. I'm afraid that in order to help I would need have access to the data so I can reproduce the error. A couple of questions:
|
Thank you for your reply. |
That is very strange... I used your code and regions outside the simulation envelope are highlighted correctly... (see below)
and see if it draws a square rectangle? And if it doesn't could you try with this:
|
Very strange... I was hoping it was something to do with with alpha transparency but the fact that you can display the first rectangle means that this is not the case... Does this happen with other datasets? Could you try the following and see what happens ?
|
Also could you show me the results of your |
Not really a solution but could you try the following:
|
Glad to see that is working now! :) I'll close the issue |
Using the SPD model to analyze the carbon 14 data, the bbty parameter is “f” in the plot function is used to draw the positive and negative area, but the area cannot be displayed. However, the summary function can find the significant area.
library(openxlsx) data<-read.xlsx(file.choose()) caldates <- calibrate(x=data$BP, errors=data$SD, normalised=FALSE) bins <- binPrep(sites=data$SiteName, ages=data$BP, h=50) nsim=200 #Number of simulations expnull <- modelTest(caldates, errors=data$SD, bins=bins, nsim=nsim, runm=50,ncores = 3, timeRange=c(8000,1000), model="exponential", datenormalised=FALSE) #plot(expnull, xlim=c(8000,1000)) #round(expnull$pval,4) #p-value summary(expnull) plot( expnull, calendar = "BP", type = "spd", ylim = c(0,0.2), xlim = c(8000,1000), col.obs = "black", col.env = rgb(0, 0, 0, 0.2), lwd.obs = 0.5, xaxs = "i", yaxs = "i", bbty = "f", bbtyRet = TRUE, drawaxes = TRUE )
the result figure:
the summary result:
The text was updated successfully, but these errors were encountered: