You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is my question/problem with a reproducible example (end of e-mail). How do I set limits on the x and y-axis using alkPlot? In my example, I was purposefully trying to over restrict the x-axis to look at a specific area of the entire plot (sort of a quick subset) just so I could further my understanding of how I can use this plotting function. I used pages 70 and 101 of your book as an example for coding xlim. The documentation for alkPlot says xlim = “A numeric of length 2 that provide the limits for the x-axis or y-axis.” There were no examples in the help description for alkPlot that demonstrated manipulations of either the x-axis or the y-axis.
#Reproducible example
library(FSA) #version 0.8.5
Age3<-data.frame(Age =3,FL=round(rnorm(1000,580,45)))
Age4<-data.frame(Age =4,FL=round(rnorm(1000,750,45)))
Age5<-data.frame(Age =5,FL=round(rnorm(1000,865,45)))
df<-rbind(Age3,Age4,Age5)
df<-lencat(~FL,data=df,startcat=300,w=20,vname="Bin20")#20 mm bins
test<-xtabs(~Bin20+Age,data=df)
ALK.obs<-prop.table(test,margin=1)
ALK.obs
alkPlot(ALK.obs,showLegend=TRUE,xlim=c(500,800))
The text was updated successfully, but these errors were encountered:
Here is my question/problem with a reproducible example (end of e-mail). How do I set limits on the x and y-axis using alkPlot? In my example, I was purposefully trying to over restrict the x-axis to look at a specific area of the entire plot (sort of a quick subset) just so I could further my understanding of how I can use this plotting function. I used pages 70 and 101 of your book as an example for coding xlim. The documentation for alkPlot says xlim = “A numeric of length 2 that provide the limits for the x-axis or y-axis.” There were no examples in the help description for alkPlot that demonstrated manipulations of either the x-axis or the y-axis.
The text was updated successfully, but these errors were encountered: