I’ve tried several thing to fix this, all not working sadly.Back in 2016, I had to prepare my PhD introductory talk and I started using package. But this resulted in the following error message:Įrror in (C_text, as.graphicsAnnot(x$label), x$x, x$y, : However, after this I tried to incorporate an earlier answer from you in order to save my plots as PDF. I was able to adjust a little to fit my data and everything worked fine! It's likely to be something extremely simply and silly, but I have been working on it for a while now and can't get it to work. It only ever uses the first name of Mean_Stage and labels all plots the same and then if i replace the w with w it labels them all as NA Labs(x = assign(paste0(" ", w), value = w), y = names(Bank1Variables)) + W <- c("Mean_Stage", "Max_Stage", "Peaks_AboveQ10", "Peaks_AboveQ50", "Hours_AboveQ10", "Hours_AboveQ50")īut when I include the vector in the code as follows: I have also created a character vector of the column names that I am using Which produces my plots beautifully, and names my Y axis correctly but my X axes are only ever named based on their row number and not their name. Labs(x = assign(paste0(” “, i), value = i), y = names(Bank1Variables)) + Print(ggplot(data = Bank1Variables, aes_string(x = Bank1Variables, y = Total_Erosion*-1)) + I have a dataframe of 36 observations of 17 variables, but in this iteration of what I am doing I only need to plot column 2 (Total_Erosion) against columns 8-17.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |