Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7700113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:37:59+00:00 2026-05-31T22:37:59+00:00

I have location (coordinates) and environmental data and I would like to create dot

  • 0

I have location (coordinates) and environmental data and I would like to create dot plots for each of the environmental variables in the dataset (see sample data and code below). Instead of a single symbol for all of the points in each dot plot (e.g. pch=16), I would like to use a unique symbol determined by the one-degree line of latitude, e.g. abs(latitude).

My R sample dataset:

WW_Covs <- structure(list(Latitude = c(62.4419, 67.833333, 65.95, 63.72935,
60.966667, 60.266667, 55.660455, 62.216667, 61.3, 61.4, 62.084139, 55.662566, 
64.48508, 63.208354, 62.87591, 62.70856, 62.64009, 63.79488, 59.55, 62.84206), BIO_02 
= c(87, 82, 75, 70, 77, 70, 59, 84, 84, 79, 85, 60, 91, 87, 74, 74, 76, 70, 76, 74), 
BIO_03 = c(26, 23, 25, 26, 25, 24, 25, 25, 26, 25, 26, 26, 24, 25, 24, 25, 25, 25, 26, 
24), BIO_04 = c(8443, 9219, 7594, 6939, 7928, 7593, 6160, 8317, 8167, 7972, 8323, 
6170, 9489, 8578, 7814, 7680, 7904, 7149, 7445, 7803), BIO_05 = c(201, 169, 151, 166, 
194, 210, 202, 205, 204, 186, 205, 200, 200, 195, 170, 154, 180, 166, 219, 170), 
BIO_06 = c(-131, -183, -144, -102, -107, -75, -26, -119, -113, -120, -120, -28, -169, 
-143, -131, -142, -124, -111, -72, -129), BIO_08 = c(128, 109, 85, 78, 122, 145, 153, 
134, 130, 126, 132, 152, 120, 119, 115, 98, 124, 104, 147, 115), BIO_09 = c(-31, -81, 
-16, 13, -60, -6, 25, -25, -25, -70, -25, 23, -56, -39, -47, -60, -39, 8, 0, -46),
BIO_12 = c(667, 481, 760, 970, 645, 557, 645, 666, 652, 674, 670, 670, 568, 598, 650, 
734, 620, 868, 571, 658), BIO_13 = c(78, 77, 96, 109, 85, 70, 67, 77, 84, 93, 78, 68, 
72, 78, 93, 99, 90, 96, 72, 93), BIO_15 = c(23, 40, 25, 21, 36, 30, 21, 24, 28, 34, 
24, 22, 28, 29, 34, 32, 36, 22, 30, 34), BIO_19 = c(147, 85, 180, 236, 108, 119, 154, 
149, 135, 118, 148, 162, 117, 119, 120, 141, 111, 204, 111, 122)), .Names = 
c("Latitude", "BIO_02", "BIO_03", "BIO_04", "BIO_05", "BIO_06", "BIO_08", "BIO_09", 
"BIO_12", "BIO_13", "BIO_15", "BIO_19"), row.names = c(1:20), class = "data.frame")

My R dotplot code:

library(lattice)    
dotplot(as.matrix(WW_Covs[,-c(1:8)]), groups = FALSE,
            strip = strip.custom(bg = 'white', par.strip.text = list(cex = 0.8)), 
            scales = list(x = list(relation = "free"), y = list(relation = "free"), 
            draw = FALSE), col = 1, cex  = 0.5, pch = 16, xlab = "Value of the variable",
            ylab = "Order of the data from text file")
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:38:00+00:00Added an answer on May 31, 2026 at 10:38 pm

    I’ve imported your data as en (easy name 🙂 ). Let me know if I understood your problem and if this is what you’re after.

    library(lattice)
    floor <- as.factor(floor(en$Latitude))
    
    dotplot(as.matrix(en[,-c(1:8)]), groups = FALSE,
      strip = strip.custom(bg = 'white', par.strip.text = list(cex = 0.8)), 
      scales = list(x = list(relation = "free"), y = list(relation = "free"), 
        draw = FALSE), col = 1, cex  = 1, pch = floor, xlab = "Value of the variable",
      ylab = "Order of the data from text file")
    

    enter image description here

    update

    If you want to change the plotting symbols, you could change the corresponding levels of floor.

    > levels(floor)
    [1] "55" "59" "60" "61" "62" "63" "64" "65" "67"
    > levels(floor) <- 1:length(levels(floor)) 
    > levels(floor)
    [1] "1" "2" "3" "4" "5" "6" "7" "8" "9"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have objects with location data stored in Core Data, I would like to
Consider a very simple model where we have locations and each location can have
I have already Fetched the name of location through coordinates. with this code reverseGeocoder
I have made a class Location which allows to set, change a location (coordinates
In my iPhone app, suppose I have the coordinates of the current location. I
I have a location table I use to store geo coordinates: class Location <
What i have: currently my app is telling me my current location (coordinates +
I have about fifty 10kb images that each have a text description and location
I have one file (location) that has an x,y coordinates and a date/time identification.
I have used Core location framework to receive my GPS coordinates in my IPOD.First

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.