I'd like to suppress the x-axis ticks in plotLMER.fnc()
(from the languageR
package) so that I can define my own values using axis()
- I'm using numerical values for analysis, but in the plot I want to display what these values actually mean.
This is easy in plot()
, using xaxt="n"
. For instance:
plot(persexort~speaksexort, data=sexort, xaxt="n")
axis(1, at=1:2, labels=c("Gay","Straight"))
Interestingly, the y-axis ticks equivalent in plot()
, yaxt="n"
, does work in plotLMER.fnc()
. Any ideas how to get it to work for the x-axis?
The plotLMER.fnc()
code I'm trying to adapt:
plotLMER.fnc(H6sexort, pred="speaksexort", xlabel="Actual sexual orientation", ylabel="Perceived sexual orientation", ylim=c(1,7), cex=0.8, withList=T)
The data:
sexortenv1_2 <- structure(list(persexort = c(5L, 4L, 3L, 3L, 4L, 4L, 5L, 7L,2L, 7L), speaksexort = structure(c(2L, 2L, 1L, 1L, 1L, 1L, 2L,2L, 1L, 2L), .Label = c("2", "4"), class = "factor"), listener = structure(c(1L,1L, 1L, 1L, 1L, 1L, 1L, 45L, 45L, 45L), .Label = c("1", "2","3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14","15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25","26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36","37", "38", "39", "40", "41", "42", "43", "44", "45"), class = "factor")), .Names = c("persexort","speaksexort", "listener"), class = "data.frame", row.names = c(9L,10L, 11L, 12L, 13L, 14L, 15L, 1078L, 1079L, 1080L))
The lmer
model (using the lme4
package):
H6sexort <- lmer(persexort ~ speaksexort + (1|listener), data=sexortenv1_2)