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

  • Home
  • SEARCH
  • 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 9124323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:32:46+00:00 2026-06-17T06:32:46+00:00

Using the radial.plot function in library(plotrix) (p.135-8) and drawing on the helpful post in

  • 0

Using the radial.plot function in library(plotrix) (p.135-8) and drawing on the helpful post in CrossValidated, I have made this spiderweb plot.

enter image description here

QUESTION

The plot displays the difference in mean between a treatment and a comparison group per item. Yet, I am particularly interested in POSITIVE change. Hence, I would like to highlight the values >= 0. To this end, I seek to

  • paint the circle-line for 0-values black

  • make the area for values <= 0, i.e. inside the 0-circle, more transparent (“lighter”).

I am happy to share the code I used to make the spiderweb plot:

items.M<-c(-0.15,0.05,0.12,-0.12,-0.02,0.27,0.53,0,-0.33,0.19,0.34)
items.J<-c(-0.09,0.08,1.63,-0.1,-0.1,-0.09,0.15,0.05,-0.12,0.51,0.02)
items.names<-c("item 1", "item 2", "item 3", "item 4", "item 5", "item 6", "item 7", "item 8", "item n1", "item n2", "item n3")


spider.data<- rbind(items.M, items.J)


library(plotrix)
radial.plot(spider.data,
  labels=items.names,
  rp.type="p",
  radial.lim=c(-0.4,1.7),
  poly.col=c(rgb(255/255, 215/255, 0, .8), rgb(0, 0, 1, .8)),
  line.col=c("black", "black"),
  lwd=1)

Many thanks for your help.

  • 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-06-17T06:32:47+00:00Added an answer on June 17, 2026 at 6:32 am

    For transparency you can play with The alpha graphical parameter setting of the grid package. First I use the gridBase package to combine grid with graphics.

    You get something like this:

    enter image description here

    library(gridBase)
    vps <- baseViewports()
    vp <- vps$plot
    vp$gp <-gpar(alpha=0.3)   # you can play with alpha here
    pushViewport(vp)
    grid.circle(r=unit(vp$xscale/6,'native'),    # /6 to get the small circle
             gp=gpar(fill='white',col='black'))
    upViewport()
    pushViewport(vps$plot)
    grid.circle(r=unit(vp$xscale/6,'native'),
            gp=gpar(fill='NA',col='black',lwd=2))  ## line width = 2 to show the black line effect
    upViewport()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay to get started I am using Jquery-Flot to plot a radial graph I
I want a radial(polar) plot using gnuplot (i.e in circular co-ordinate system(r,theta). Here I
PROBLEM When using Imagick::newPseudoImage to create a radial gradient, this error appears in the
I have a problem using scipy.weave.inline. I want to program a unitstep function centered
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using CI for the first time and i'm smashing my head with this seemingly
I have a series of words animating, using css3. A background image of the
I have a radial gradient texture (RGBA) that goes from a black fully opaque
I have a PHP page that contains variables, I have some radial boxes, and
I'm traing to identify road-sign shapes using radials. I have the center point of

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.