Git Product home page Git Product logo

Comments (7)

sadamowi avatar sadamowi commented on July 17, 2024

Using very very secure dishes, I still get this error. This is now for line 1556. The error message is:

Error: unexpected symbol in:
" (print(ggplot(relativeDistClass[[i]], aes(x = variable, y = value, color = sign))
foreach"

from evolutionary-rates-analysis-pipeline.

sadamowi avatar sadamowi commented on July 17, 2024

Also, I get a Polychaeta plot, but do not seem to be able to scroll to the Clitellata plot.

from evolutionary-rates-analysis-pipeline.

m-orton avatar m-orton commented on July 17, 2024

Hi Sally,

I didnt seem to get this error when running Annelida (after updating) or currently after my first couple of runthroughs of Mollusca (hope to send results tomorrow).

I found this post on stackoverflow which may be useful:
http://stackoverflow.com/questions/25889234/error-unexpected-symbol-input-string-constant-numeric-constant-special-in-my-co

In summary, apparently you can highlight code and hold ctrl+shift+a to reformat it when you are getting the "unexpected symbol" error. Next time you run the script (whichever phyla), try running the plot command like this instead to see if that changes anything for you:

foreach(i = 1:length(relativeDistClass)) %do%
(print(
ggplot(relativeDistClass[[i]], aes(
x = variable, y = value, color = sign
))
+ geom_point(stat = "identity", size = 2.5)
+ theme(
text = element_text(size = 13),
axis.text.x = element_text(
face = "bold",
angle = 90,
vjust = 1
)
)
+ ggtitle(
paste0(
classTitle[i],
"\n",
pValBinomialTitle[i],
"\n",
pvalWilcoxonTitle[i]
)
)
+ labs(x = "Pairing Number", y = "Signed Relative OutGroup Distance", color = "sign")
))

If the command does work for you, then I can modify the script with the reformatted command.

Another thing to do would be to start a fresh RStudio session as well before doing another script runthrough to see if that helps also.

If that all fails, try resetting the RStudio desktop state. According to that stackoverflow post a corrupted desktop state can sometimes cause this error. Instructions on how to do this can be found here: (they give instructions for Mac as well)
https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-s-State

Best Regards,
Matt

from evolutionary-rates-analysis-pipeline.

m-orton avatar m-orton commented on July 17, 2024

Ok so github doesnt seem to be formatting that command correctly. I think im going to change it in the script directly then.

Best Regards,
Matt

from evolutionary-rates-analysis-pipeline.

sadamowi avatar sadamowi commented on July 17, 2024

Thanks very much Matt. I am going to leave these plotting issues aside for now, in favour of staying focused on the main analysis decisions. I hope to return to this in a couple of days.

from evolutionary-rates-analysis-pipeline.

m-orton avatar m-orton commented on July 17, 2024

One thing I should mention about the plot is if you cant get it to work offline, I have confirmed that it works with the online RStudio on the cloud so we should still be able to get any plot figures we might want to include in the publication.

from evolutionary-rates-analysis-pipeline.

m-orton avatar m-orton commented on July 17, 2024

This issue was moved to jmay29/lat-project#8

from evolutionary-rates-analysis-pipeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.