Error: unexpected '=' in my code

I'm new to using R and I'm trying to access a group of data from excel. Below is the code I'm trying to run but I get an error message saying that I have an unexpected '=' in my code:

Can someone give me some advice?


please provide the complete error message as it appears.

Error: unexpected '=' in "plot("

This was the full error statement. I'm not really sure how to fix this

instead of a comma you put a fullstop between temp and data

I'll try that


when I initially downloaded R, this is the message that came up, I'm not sure if this would be linked to my original issue:
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_COLLATE failed, using "C"
3: Setting LC_TIME failed, using "C"
4: Setting LC_MESSAGES failed, using "C"
5: Setting LC_MONETARY failed, using "C"
[ GUI 1.77 (7985) x86_64-apple-darwin17.0]

WARNING: You're using a non-UTF8 locale, therefore only ASCII characters will work.
Please read R for Mac OS X FAQ (see Help) section 9 and adjust your system preferences accordingly.

However, how can I address these warning messages?